From 5447d180bec286a4ed8960681b4a4d4842693e20 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 5 Mar 2007 17:33:58 +0000 Subject: [PATCH] changed batch renewal logic to collect items to renew before the renewal kicks off so that page drawing does not occurr mid-renewal git-svn-id: svn://svn.open-ils.org/ILS/trunk@7020 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/myopac.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/skin/default/js/myopac.js b/Open-ILS/web/opac/skin/default/js/myopac.js index fc7ea13ef9..7a9065903a 100644 --- a/Open-ILS/web/opac/skin/default/js/myopac.js +++ b/Open-ILS/web/opac/skin/default/js/myopac.js @@ -1214,6 +1214,8 @@ function myOPACRenewSelected() { if(!confirm($('myopac_renew_confirm').innerHTML)) return; __a_renew_success = false; + var renewThese = []; + for( var i = 0; i < rows.length; i++ ) { var row = rows[i]; @@ -1225,8 +1227,13 @@ function myOPACRenewSelected() { if(circsCache[j].id() == circ_id) circ = circsCache[j]; - moRenewCirc( circ.target_copy(), G.user.id(), circ ); + renewThese.push(circ); } + + for( var i = 0; i < renewThese.length; i++ ) { + var circ = renewThese[i]; + moRenewCirc( circ.target_copy(), G.user.id(), circ ); + } } -- 2.11.0