change to delete to remove, since JS uses delete
authorJason Etheridge <jason@esilibrary.com>
Mon, 11 Jul 2016 15:59:06 +0000 (11:59 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 18 Aug 2016 19:34:22 +0000 (15:34 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/templates/staff/admin/actor/org_unit/t_main_tab.tt2
Open-ILS/web/js/ui/default/staff/admin/actor/org_unit/app.js

index 95c42b8..1d2e805 100644 (file)
@@ -50,7 +50,7 @@
     </div>
     <div class="row">
         <div class="col-md-2">
-            <button class="form-control" ng-click="delete()" ng-disabled="!i_am_sure">[% l('Delete Org') %]</button>
+            <button class="form-control" ng-click="remove()" ng-disabled="!i_am_sure">[% l('Delete Org') %]</button>
         </div>
         <div class="col-md-9">
             <span>
index ce358de..c5b34a7 100644 (file)
@@ -112,7 +112,7 @@ function($scope , $q , $routeParams , $window , egCore , egOrg , ngToast ) {
         );
     };
 
-    $scope.delete = function() {
+    $scope.remove = function() {
         var new_org = egOrg.get($scope.org.id);
         egCore.pcrud.remove(new_org).then(
             function(res) { // success