From d3c037a3fd9f1a5da39fe95b1797386d4d5b1313 Mon Sep 17 00:00:00 2001 From: "a. bellenir" Date: Tue, 26 Jun 2018 20:57:08 -0400 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); } ); -- 2.11.0