Undo previous attempts at toasting
authorJason Stephenson <jason@sigio.com>
Sun, 9 Jan 2022 01:05:17 +0000 (20:05 -0500)
committerJason Stephenson <jason@sigio.com>
Sun, 9 Jan 2022 01:05:17 +0000 (20:05 -0500)
Open-ILS/src/templates/staff/cat/item/index.tt2
Open-ILS/web/js/ui/default/staff/cat/item/app.js

index 0063630..f200f6e 100644 (file)
@@ -33,7 +33,7 @@
     s.OVERRIDE_TRANSFER_COPIES_TO_MARKED_VOLUME_BODY =
       "[% l('Reason(s) include: [_1]', '{{evt_desc}}') %]";
     s.SUCCESS_UPDATE_INVENTORY =
-      "[% l('Updated most recent inventory data for [_1] items.', '{{success_count}}') %]";
+      "[% l('Updated most recent inventory data for selected items.') %]";
     s.FAIL_UPDATE_INVENTORY =
       "[% l('Failed to update recent inventory data for selected items.')%]";
     s.ITEM_SUCCESSFULLY_MODIFIED =
index b7dfeb3..0a9371a 100644 (file)
@@ -318,13 +318,13 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD
  * List view - grid stuff
  */
 .controller('ListCtrl', 
-       ['$scope','$q','$sce','$routeParams','$location','$timeout','$window','egCore',
+       ['$scope','$q','$routeParams','$location','$timeout','$window','egCore',
         'egGridDataProvider','egItem','egUser','$uibModal','egCirc','egConfirmDialog',
         'egProgressDialog', 'ngToast',
 // function($scope , $q , $routeParams , $location , $timeout , $window , egCore , 
 //          egGridDataProvider , itemSvc , egUser , $uibModal , egCirc , egConfirmDialog,
 //          egProgressDialog, ngToast) {
-    function($scope , $q , $sce, $routeParams , $location , $timeout , $window , egCore , egGridDataProvider , itemSvc , egUser , $uibModal , egCirc , egConfirmDialog,
+    function($scope , $q , $routeParams , $location , $timeout , $window , egCore , egGridDataProvider , itemSvc , egUser , $uibModal , egCirc , egConfirmDialog,
                  egProgressDialog, ngToast) {
     var copyId = [];
     var cp_list = $routeParams.idList;
@@ -560,12 +560,9 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD
 
     $scope.update_inventory = function() {
         var copy_list = gatherSelectedHoldingsIds();
-        itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res,$scope) {
+        itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res) {
             if (res[0]) {
-                $scope.success_count = res[0];
-                ngToast.create({
-                    content: $sce.trustAsHtml(egCore.strings.SUCCESS_UPDATE_INVENTORY),
-                    compileContent: true});
+                ngToast.create(egCore.strings.SUCCESS_UPDATE_INVENTORY);
             } else {
                 ngToast.warning(egCore.strings.FAIL_UPDATE_INVENTORY);
             }