the checkout disable thing wasn't working all the time
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 19:43:16 +0000 (19:43 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 19:43:16 +0000 (19:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6083 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js

index bcc3bdf..fb4d593 100644 (file)
@@ -404,18 +404,10 @@ patron.display.prototype = {
                                                                        if (obj.stop_checkouts && obj.checkout_window) {
                                                                                setTimeout( function() {
                                                                                        try {
-                                                                                       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-                                                                                       if (
-                                                                                               obj.checkout_window &&
-                                                                                               obj.checkout_window.g &&
-                                                                                               obj.checkout_window.g.checkout &&
-                                                                                               typeof obj.checkout_window.g.check_disable == 'function') {
-                                                                                                       obj.checkout_window.g.checkout.check_disable();
-                                                                                               }
-                                                                                       } catch(E) {
-                                                                                               alert(E);
-                                                                                       }
-                                                                               }, 0);
+                                                                                               netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+                                                                                               obj.checkout_window.g.checkout.check_disable();
+                                                                                       } catch(E) { }
+                                                                               }, 1000);
                                                                        }
                                                                } catch(E) {
                                                                        obj.error.standard_unexpected_error_alert('Error showing patron alert and holds availability.',E);