From 88d0db621ea0481d0e5ba0ecb9faa850b0981232 Mon Sep 17 00:00:00 2001 From: pines Date: Wed, 13 Sep 2006 19:43:16 +0000 Subject: [PATCH] the checkout disable thing wasn't working all the time git-svn-id: svn://svn.open-ils.org/ILS/trunk@6083 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/patron/display.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index bcc3bdf0d7..fb4d593520 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -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); -- 2.43.2