[open-ils-commits] r18231 - trunk/Open-ILS/web/opac/extras/circ (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 7 18:46:25 EDT 2010
Author: senator
Date: 2010-10-07 18:46:24 -0400 (Thu, 07 Oct 2010)
New Revision: 18231
Modified:
trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js
Log:
progress to ProgressDialog means total, not incremental
Modified: trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js
===================================================================
--- trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js 2010-10-07 22:37:45 UTC (rev 18230)
+++ trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js 2010-10-07 22:46:24 UTC (rev 18231)
@@ -144,7 +144,7 @@
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 @@
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 @@
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();
More information about the open-ils-commits
mailing list