new widgets to disable/enable in the checkout UI based on patron conditions
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Feb 2010 17:26:19 +0000 (17:26 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Feb 2010 17:26:19 +0000 (17:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15631 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkout.js

index 3669821..9e1a46c 100644 (file)
@@ -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) {