LP1755876: Add progress bar when renewing items
authorJessica Woolford <jwoolford@biblio.org>
Thu, 29 Sep 2022 17:27:20 +0000 (13:27 -0400)
committerJane Sandberg <js7389@princeton.edu>
Fri, 4 Nov 2022 14:06:21 +0000 (07:06 -0700)
Signed-off-by: Jessica Woolford <jwoolford@biblio.org>
Signed-off-by: Susan Morrison <smorrison@georgialibraries.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>

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

index b2988c5..3029151 100644 (file)
@@ -503,9 +503,11 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
                 }
                 window.oils_inside_batch = false;
                 window.oils_op_change_within_batch = false;
+                egProgressDialog.close();
                 reset_page();
             }
             function do_one() {
+                egProgressDialog.increment();
                 var bc = barcodes.pop();
                 if (!bc) {
                     batch_cleanup();
@@ -525,6 +527,7 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
                     }
                 });
             }
+            egProgressDialog.open({value : 1});
             do_one();
         });
     }