From: Jeff Davis Date: Mon, 1 Feb 2021 22:17:05 +0000 (-0800) Subject: LP1913811 progress dialog on Items Out grid X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=faf48f63901daa459ad2ded6b4ba95f4a17a1091;p=evergreen%2Fpines.git LP1913811 progress dialog on Items Out grid Signed-off-by: Jeff Davis Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js index ed0f0f57e5..d8cc9dad9f 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js @@ -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); }; });