From d1dc3222f925019b8767d48d5abc53c703fea253 Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 14 Apr 2011 17:57:32 +0000 Subject: [PATCH] Address LP #754880, where printing happens before the progress dialog can be cleared in the alternate holds pull list print interface Additionally, provide the usual "print page" button so that the list can be reprinted at will git-svn-id: svn://svn.open-ils.org/ILS/trunk@20082 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/extras/circ/alt_holds_print.js | 10 ++++++---- Open-ILS/xul/staff_client/server/patron/holds.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) 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 3fd5020..31a21c1 100644 --- a/Open-ILS/web/opac/extras/circ/alt_holds_print.js +++ b/Open-ILS/web/opac/extras/circ/alt_holds_print.js @@ -58,10 +58,12 @@ function do_pull_list() { }, oncomplete : function () { progress_dialog.hide(); - if (any) - window.print(); - else - alert(dojo.byId("no_results").innerHTML); + setTimeout( + function() { + if (any) window.print(); + else alert(dojo.byId("no_results").innerHTML); + }, 500 /* give the progress_dialog more time to go away */ + ); } } ); diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 3596a40..ba607d7 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -343,7 +343,7 @@ patron.holds.prototype = { "authtime": ses("authtime"), "no_xulG": false, "show_nav_buttons": true, - "show_print_button": false + "show_print_button": true }; ["url_prefix", "new_tab", "set_tab", "close_tab", "new_patron_tab", -- 1.7.2.5