Address LP #754880, where printing happens before the progress dialog can be
[evergreen-equinox.git] / Open-ILS / web / opac / extras / circ / alt_holds_print.js
index 3fd5020..31a21c1 100644 (file)
@@ -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 */
+            );
           }
         }
     );