polish
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 02:03:54 +0000 (02:03 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 02:03:54 +0000 (02:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2493 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 7fc2efe..d360c11 100644 (file)
@@ -160,6 +160,13 @@ patron.display.prototype = {
 
                if (obj.barcode) {
                        obj.controller.view.PatronNavBar.selectedIndex = 1;
+                       obj.controller.view.cmd_patron_refresh.setAttribute('disabled','true');
+                       obj.controller.view.cmd_patron_checkout.setAttribute('disabled','true');
+                       obj.controller.view.cmd_patron_items.setAttribute('disabled','true');
+                       obj.controller.view.cmd_patron_holds.setAttribute('disabled','true');
+                       obj.controller.view.cmd_patron_bills.setAttribute('disabled','true');
+                       obj.controller.view.cmd_patron_edit.setAttribute('disabled','true');
+                       obj.controller.view.cmd_patron_info.setAttribute('disabled','true');
                        obj.controller.view.patron_name.setAttribute('value','Retrieving...');
                        var frame = obj.left_deck.set_iframe(
                                urls.remote_patron_summary
@@ -169,6 +176,13 @@ patron.display.prototype = {
                                {
                                        'on_finished' : function(patron) {
                                                obj.patron = patron; obj.controller.render();
+                                               obj.controller.view.cmd_patron_refresh.setAttribute('disabled','false');
+                                               obj.controller.view.cmd_patron_checkout.setAttribute('disabled','false');
+                                               obj.controller.view.cmd_patron_items.setAttribute('disabled','false');
+                                               obj.controller.view.cmd_patron_holds.setAttribute('disabled','false');
+                                               obj.controller.view.cmd_patron_bills.setAttribute('disabled','false');
+                                               obj.controller.view.cmd_patron_edit.setAttribute('disabled','false');
+                                               obj.controller.view.cmd_patron_info.setAttribute('disabled','false');
                                                if (!obj._checkout_spawned) {
                                                        spawn_checkout_interface();
                                                        obj._checkout_spawned = true;