anthtrigger
Version:
Trigger events via http service
40 lines (34 loc) • 854 B
JavaScript
(function() {
var modl;
modl = angular.module('anthTrigger');
modl.filter('cmdArgsFormatFilter', function() {
return function(input, inArray) {
if (inArray == null) {
inArray = false;
}
if (!input) {
return input;
}
if (inArray) {
return input.split('\n');
} else {
return input.replace(/\n/g, ' ');
}
};
});
modl.controller('runScriptController', function($scope, $modalInstance, script) {
$scope.script = script;
return $scope.runScript = function(args, notes) {
var argsInArray;
if (args == null) {
args = '';
}
argsInArray = args.split('\n');
return $modalInstance.close({
args: argsInArray,
notes: notes
});
};
});
}).call(this);
//# sourceMappingURL=runScriptController.js.map