[open-ils-commits] r12235 - branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Feb 19 12:51:52 EST 2009
Author: phasefx
Date: 2009-02-19 12:51:49 -0500 (Thu, 19 Feb 2009)
New Revision: 12235
Modified:
branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js
branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.xul
branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
Log:
nav button styling and auto-popup the menu button
Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js 2009-02-19 16:35:14 UTC (rev 12234)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js 2009-02-19 17:51:49 UTC (rev 12235)
@@ -266,6 +266,14 @@
);
}
],
+ 'cmd_patron_other' : [
+ ['command'],
+ function(ev) {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_other" ) ); } catch(E) {};
+ obj.reset_nav_styling('cmd_patron_other');
+ try { document.getElementById('PatronNavBar_other').firstChild.showPopup(); } catch(E) {};
+ }
+ ],
'cmd_patron_info' : [
['command'],
function(ev) {
@@ -416,7 +424,7 @@
x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
var x = document.getElementById("PatronNavBar_holds");
x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
- var x = document.getElementById("PatronNavBar_info");
+ var x = document.getElementById("PatronNavBar_other");
x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
var x = document.getElementById("PatronNavBar_edit");
x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
@@ -588,13 +596,17 @@
},
'reset_nav_styling' : function(btn) {
- this.controller.view.cmd_patron_checkout.setAttribute('style','');
- this.controller.view.cmd_patron_items.setAttribute('style','');
- this.controller.view.cmd_patron_edit.setAttribute('style','');
- this.controller.view.cmd_patron_info.setAttribute('style','');
- this.controller.view.cmd_patron_holds.setAttribute('style','');
- this.controller.view.cmd_patron_bills.setAttribute('style','');
- this.controller.view[ btn ].setAttribute('style','background: blue; color: white;');
+ try {
+ this.controller.view.cmd_patron_checkout.setAttribute('style','');
+ this.controller.view.cmd_patron_items.setAttribute('style','');
+ this.controller.view.cmd_patron_edit.setAttribute('style','');
+ this.controller.view.cmd_patron_other.setAttribute('style','');
+ this.controller.view.cmd_patron_holds.setAttribute('style','');
+ this.controller.view.cmd_patron_bills.setAttribute('style','');
+ this.controller.view[ btn ].setAttribute('style','background: blue; color: white;');
+ } catch(E) {
+ alert(E);
+ }
},
'render_search_form' : function(params) {
Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.xul
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.xul 2009-02-19 16:35:14 UTC (rev 12234)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.xul 2009-02-19 17:51:49 UTC (rev 12235)
@@ -96,6 +96,7 @@
<command id="cmd_patron_bills" />
<command id="cmd_patron_edit" />
<command id="cmd_patron_info" />
+ <command id="cmd_patron_other" />
<command id="cmd_patron_alert" />
<command id="cmd_patron_exit" />
<command id="cmd_patron_retrieve" />
Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2009-02-19 16:35:14 UTC (rev 12234)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2009-02-19 17:51:49 UTC (rev 12235)
@@ -87,7 +87,7 @@
label="&staff.patron_navbar.bills;" accesskey="&staff.patron_navbar.bills.accesskey;"/>
<button id="PatronNavBar_edit" command="cmd_patron_edit" class="nav"
label="&staff.patron_navbar.edit;" accesskey="&staff.patron_navbar.edit.accesskey;"/>
- <button id="PatronNavBar_info" class="nav" label="&staff.patron_navbar.other;" accesskey="&staff.patron_navbar.other.accesskey;" type="menu">
+ <button id="PatronNavBar_other" command="cmd_patron_other" class="nav" label="&staff.patron_navbar.other;" accesskey="&staff.patron_navbar.other.accesskey;" type="menu">
<menupopup>
<menuitem label="&staff.patron_navbar.alert;" accesskey="&staff.patron_navbar.alert.accesskey;" command="cmd_patron_alert"/>
<menuitem label="&staff.patron_navbar.info;" accesskey="&staff.patron_navbar.info.accesskey;" command="cmd_patron_info"/>
More information about the open-ils-commits
mailing list