summaryrefslogtreecommitdiff
path: root/www/lib/angular-wizard/src/wizardButtons.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
commit210e8feae2fb4842bfb2de38666e6c41671fef3c (patch)
treecbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/angular-wizard/src/wizardButtons.js
parente7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff)
removed lib
Diffstat (limited to 'www/lib/angular-wizard/src/wizardButtons.js')
-rw-r--r--www/lib/angular-wizard/src/wizardButtons.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/www/lib/angular-wizard/src/wizardButtons.js b/www/lib/angular-wizard/src/wizardButtons.js
deleted file mode 100644
index 0afb46f8..00000000
--- a/www/lib/angular-wizard/src/wizardButtons.js
+++ /dev/null
@@ -1,26 +0,0 @@
-function wizardButtonDirective(action) {
- angular.module('mgo-angular-wizard')
- .directive(action, function() {
- return {
- restrict: 'A',
- replace: false,
- require: '^wizard',
- link: function($scope, $element, $attrs, wizard) {
-
- $element.on("click", function(e) {
- e.preventDefault();
- $scope.$apply(function() {
- $scope.$eval($attrs[action]);
- wizard[action.replace("wz", "").toLowerCase()]();
- });
- });
- }
- };
- });
-}
-
-wizardButtonDirective('wzNext');
-wizardButtonDirective('wzPrevious');
-wizardButtonDirective('wzFinish');
-wizardButtonDirective('wzCancel');
-wizardButtonDirective('wzReset');