From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 24 Feb 2010 17:26:19 +0000 (+0000)
Subject: new widgets to disable/enable in the checkout UI based on patron conditions
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9561c12af74d852e3c040f9a769ef17a42dc4f65;p=contrib%2FConifer.git

new widgets to disable/enable in the checkout UI based on patron conditions

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15631 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js
index 3669821138..9e1a46cf29 100644
--- a/Open-ILS/xul/staff_client/server/circ/checkout.js
+++ b/Open-ILS/xul/staff_client/server/circ/checkout.js
@@ -276,13 +276,19 @@ circ.checkout.prototype = {
                 if (disable) {
                     document.getElementById('checkout_submit_barcode_button').disabled = true;
                     document.getElementById('checkout_done').disabled = true;
+                    document.getElementById('checkout_duedate_checkbox').disabled = true;
+                    document.getElementById('checkout_duedate_timepicker').disabled = true;
                     obj.controller.view.checkout_menu.disabled = true;
                     obj.controller.view.checkout_barcode_entry_textbox.disabled = true;
+                    obj.controller.view.checkout_duedate_datepicker.disabled = true;
                 } else {
                     document.getElementById('checkout_submit_barcode_button').disabled = false;
                     document.getElementById('checkout_done').disabled = false;
+                    document.getElementById('checkout_duedate_checkbox').disabled = false;
+                    document.getElementById('checkout_duedate_timepicker').disabled = false;
                     obj.controller.view.checkout_menu.disabled = false;
                     obj.controller.view.checkout_barcode_entry_textbox.disabled = false;
+                    obj.controller.view.checkout_duedate_datepicker.disabled = false;
                 }
             }
         } catch(E) {