LP1913811 progress dialog on Items Out grid
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 1 Feb 2021 22:17:05 +0000 (14:17 -0800)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 4 Feb 2021 16:26:02 +0000 (11:26 -0500)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js

index ed0f0f5..d8cc9da 100644 (file)
@@ -7,10 +7,10 @@ angular.module('egPatronApp')
 .controller('PatronItemsOutCtrl',
        ['$scope','$q','$routeParams','$timeout','egCore','egUser','patronSvc',
         '$location','egGridDataProvider','$uibModal','egCirc','egConfirmDialog',
-        'egBilling','$window','egBibDisplay',
+        'egProgressDialog','egBilling','$window','egBibDisplay',
 function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc , 
          $location , egGridDataProvider , $uibModal , egCirc , egConfirmDialog , 
-         egBilling , $window , egBibDisplay) {
+         egProgressDialog , egBilling , $window , egBibDisplay) {
 
     // list of noncatatloged circulations. Define before initTab to 
     // avoid any possibility of race condition, since they are loaded
@@ -118,6 +118,8 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
         var deferred = $q.defer();
         var rendered = 0;
 
+        egProgressDialog.open();
+
         // fetch the lot of circs and stream the results back via notify
         egCore.pcrud.search('circ', {id : id_list},
             {   flesh : 4,
@@ -182,6 +184,7 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
                 }
 
                 if (rendered++ >= offset && rendered <= count) {
+                    egProgressDialog.close();
                     deferred.notify(circ);
                 };
             });