From: a. bellenir Date: Wed, 27 Jun 2018 00:57:08 +0000 (-0400) Subject: lp1731272 - hanging progress bar for records with no holds X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d3c037a3fd9f1a5da39fe95b1797386d4d5b1313;p=working%2FEvergreen.git lp1731272 - hanging progress bar for records with no holds there is a race condition between opening/closing the progress dialog if there are no holds. use setTimeout to force egProgressDialog.close to the end of the javascript event queue. Signed-off-by: a. bellenir --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index 524fca472e..d171c4b3e4 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -1708,7 +1708,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e deferred.notify(hold_data); egProgressDialog.increment(); } - )['finally'](egProgressDialog.close); + )['finally'](function(){ setTimeout(egProgressDialog.close); }); } );