diff --git a/app/assets/javascripts/admin/directives/confirm_link_path.js.coffee b/app/assets/javascripts/admin/directives/confirm_link_path.js.coffee deleted file mode 100644 index 2c8dba4baf..0000000000 --- a/app/assets/javascripts/admin/directives/confirm_link_path.js.coffee +++ /dev/null @@ -1,7 +0,0 @@ -angular.module("ofn.admin").directive "ofnConfirmLinkPath", (ofnConfirmHandler) -> - restrict: "A" - scope: - path: "@ofnConfirmLinkPath" - link: (scope, element, attrs) -> - element.click ofnConfirmHandler scope, -> - window.location = scope.path \ No newline at end of file diff --git a/app/assets/javascripts/admin/line_items/directives/confirm_model_change.js.coffee b/app/assets/javascripts/admin/line_items/directives/confirm_model_change.js.coffee deleted file mode 100644 index a0b5272981..0000000000 --- a/app/assets/javascripts/admin/line_items/directives/confirm_model_change.js.coffee +++ /dev/null @@ -1,6 +0,0 @@ -angular.module("ofn.admin").directive "ofnConfirmModelChange", (ofnConfirmHandler,$timeout) -> - restrict: "A" - link: (scope, element, attrs) -> - handler = ofnConfirmHandler scope, -> scope.fetchOrders() - scope.$watch attrs.ngModel, (oldValue,newValue) -> - handler() unless oldValue == undefined || newValue == oldValue \ No newline at end of file