[open-ils-commits] r20084 - in branches/rel_2_0/Open-ILS: web/opac/extras/circ xul/staff_client/server/patron (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 14 13:58:56 EDT 2011


Author: senator
Date: 2011-04-14 13:58:52 -0400 (Thu, 14 Apr 2011)
New Revision: 20084

Modified:
   branches/rel_2_0/Open-ILS/web/opac/extras/circ/alt_holds_print.js
   branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
Backport r20082 from trunk

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



Modified: branches/rel_2_0/Open-ILS/web/opac/extras/circ/alt_holds_print.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/extras/circ/alt_holds_print.js	2011-04-14 17:58:32 UTC (rev 20083)
+++ branches/rel_2_0/Open-ILS/web/opac/extras/circ/alt_holds_print.js	2011-04-14 17:58:52 UTC (rev 20084)
@@ -58,10 +58,12 @@
           },
           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 */
+            );
           }
         }
     );

Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js	2011-04-14 17:58:32 UTC (rev 20083)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js	2011-04-14 17:58:52 UTC (rev 20084)
@@ -343,7 +343,7 @@
                                     "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",



More information about the open-ils-commits mailing list