[open-ils-commits] r20082 - in trunk/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:57:36 EDT 2011


Author: senator
Date: 2011-04-14 13:57:32 -0400 (Thu, 14 Apr 2011)
New Revision: 20082

Modified:
   trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js
   trunk/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
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: trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js
===================================================================
--- trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js	2011-04-14 16:51:55 UTC (rev 20081)
+++ trunk/Open-ILS/web/opac/extras/circ/alt_holds_print.js	2011-04-14 17:57:32 UTC (rev 20082)
@@ -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: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2011-04-14 16:51:55 UTC (rev 20081)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2011-04-14 17:57:32 UTC (rev 20082)
@@ -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