From: senator Date: Thu, 7 Oct 2010 22:46:24 +0000 (+0000) Subject: progress to ProgressDialog means total, not incremental X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4e54813dcfbc8855571637f958ba15b3cf2038d8;p=evergreen%2Fbjwebb.git progress to ProgressDialog means total, not incremental git-svn-id: svn://svn.open-ils.org/ILS/trunk@18231 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/extras/circ/alt_holds_print.js b/Open-ILS/web/opac/extras/circ/alt_holds_print.js index f4ea1c338..3fd5020be 100644 --- a/Open-ILS/web/opac/extras/circ/alt_holds_print.js +++ b/Open-ILS/web/opac/extras/circ/alt_holds_print.js @@ -144,7 +144,7 @@ function do_clear_holds() { function do_clear_holds_from_cache(cache_key) { progress_dialog.show(true); - var any = false; + var any = 0; var target = dojo.byId("target"); dojo.empty(target); var template = dojo.query("tr", dojo.byId("template"))[0]; @@ -166,7 +166,7 @@ function do_clear_holds_from_cache(cache_key) { hold.action = resp.action; var tr = dojo.clone(template); - any = true; + any++; dojo.query("td:not([type])", tr).forEach( function(td) { @@ -185,9 +185,9 @@ function do_clear_holds_from_cache(cache_key) { dojo.attr(tr, "sortkey", hold.usr.display_name); place_by_sortkey(tr, target); - progress_dialog.update({"progress": 1}); } ); + progress_dialog.update({"progress": any}); }, "oncomplete": function() { progress_dialog.hide();