cosmetic and cmd for retrieve in search
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 18:32:12 +0000 (18:32 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 18:32:12 +0000 (18:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2506 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index d360c11..de9d12c 100644 (file)
@@ -51,6 +51,11 @@ patron.display.prototype = {
                                                ['command'],
                                                function() { alert('Not Yet Implemented'); }
                                        ],
+                                       'cmd_patron_retrieve' : [
+                                               ['command'],
+                                               function(ev) {
+                                               }
+                                       ],
                                        'cmd_patron_refresh' : [
                                                ['command'],
                                                function(ev) {
@@ -193,6 +198,7 @@ patron.display.prototype = {
                        obj.summary_window = frame.contentWindow;
                } else {
                        obj.controller.view.PatronNavBar.selectedIndex = 0;
+                       obj.controller.view.cmd_patron_retrieve.setAttribute('disabled','true');
                        var form_frame = obj.left_deck.set_iframe(
                                urls.remote_patron_search_form
                                +'?session=' + window.escape(obj.session),
index 9bf5766..c159bac 100644 (file)
@@ -63,6 +63,7 @@
                <command id="cmd_patron_bills" />
                <command id="cmd_patron_edit" />
                <command id="cmd_patron_info" />
+               <command id="cmd_patron_retrieve" />
        </commandset>
 
        <box id="patron_display_main" />
index bd027a9..ab4141e 100644 (file)
@@ -12,7 +12,7 @@
        <hbox id="pdm2hb1">
                <label id="patron_name" class="patronNameLarge" tooltiptext="&staff.patron_display.name.label;" 
                        value="No Patron" flex="1"/>
-               <deck id="PatronNavBar" flex="0" class="my_overflow"/>
+               <deck id="PatronNavBar" flex="1" class="my_overflow"/>
        </hbox>
        <hbox id="PatronNotNavBar" flex="1">
                <vbox id="pdm3" flex="1">
@@ -33,8 +33,8 @@
 </deck>
 
 <deck id="PatronNavBar">
-       <hbox id="PatronNavBar0"/>
-       <hbox id="PatronNavBar1"/>
+       <hbox id="PatronNavBar0" flex="1"/>
+       <hbox id="PatronNavBar1" flex="1"/>
 </deck>
 
 <hbox id="PatronNavBar1">
@@ -55,7 +55,7 @@
 </hbox>
 
 <hbox id="PatronNavBar0">
-       <button id="pnb1b1" label="Retrieve Patron" accesskey="R"/>
+       <spacer flex="1"/><button id="pnb1b1" label="Retrieve Patron" accesskey="R" command="cmd_patron_retrieve"/>
 </hbox>
 
 </overlay>