[open-ils-commits] r12427 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 5 12:51:43 EST 2009
Author: phasefx
Date: 2009-03-05 12:51:40 -0500 (Thu, 05 Mar 2009)
New Revision: 12427
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
trunk/Open-ILS/xul/staff_client/server/patron/display.xul
trunk/Open-ILS/xul/staff_client/server/patron/display_horiz.xul
trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
Log:
fix patron summary toggle. some tweaking with persist, which isn't working
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-03-05 17:39:25 UTC (rev 12426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-03-05 17:51:40 UTC (rev 12427)
@@ -113,6 +113,15 @@
}
}
],
+ 'cmd_patron_toggle_summary' : [
+ ['command'],
+ function(ev) {
+ var x = document.getElementById('left_deck_vbox');
+ if (x) {
+ x.hidden = ! x.hidden;
+ }
+ }
+ ],
'cmd_search_form' : [
['command'],
function(ev) {
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.xul 2009-03-05 17:39:25 UTC (rev 12426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.xul 2009-03-05 17:51:40 UTC (rev 12427)
@@ -32,6 +32,7 @@
<scripts id="openils_util_scripts"/>
<script type="text/javascript" src="/xul/server/main/JSAN.js"/>
+ <script type="text/javascript" src="/xul/server/patron/display.js"/>
<script>
<![CDATA[
function $(id) { return document.getElementById(id); }
@@ -104,6 +105,7 @@
<command id="cmd_patron_exit" />
<command id="cmd_patron_retrieve" />
<command id="cmd_patron_merge" />
+ <command id="cmd_patron_toggle_summary" />
<command id="cmd_search_form" />
<command id="cmd_verify_credentials" />
<command id="cmd_perm_editor" />
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display_horiz.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display_horiz.xul 2009-03-05 17:39:25 UTC (rev 12426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display_horiz.xul 2009-03-05 17:51:40 UTC (rev 12427)
@@ -32,6 +32,7 @@
<scripts id="openils_util_scripts"/>
<script type="text/javascript" src="/xul/server/main/JSAN.js"/>
+ <script type="text/javascript" src="/xul/server/patron/display.js"/>
<script>
<![CDATA[
function $(id) { return document.getElementById(id); }
@@ -104,6 +105,7 @@
<command id="cmd_patron_exit" />
<command id="cmd_patron_retrieve" />
<command id="cmd_patron_merge" />
+ <command id="cmd_patron_toggle_summary" />
<command id="cmd_search_form" />
<command id="cmd_verify_credentials" />
<command id="cmd_perm_editor" />
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul 2009-03-05 17:39:25 UTC (rev 12426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul 2009-03-05 17:51:40 UTC (rev 12427)
@@ -32,13 +32,13 @@
<label class="hideme invalid_address_indicator" value="&staff.patron.display_overlay.invalid_address.value;"/>
</hbox>
<vbox id="PatronNotNavBar" flex="1" class="my_bg">
- <vbox id="pdm3y" flex="1" persist="height">
- <deck id="patron_left_deck"/>
- </vbox>
- <splitter id="pdms1y" orient="vertical" collapse="before" persist="state hidden"><grippy id="pdmsg1"/></splitter>
- <vbox id="pdm4y" flex="8" persist="height">
- <deck id="patron_right_deck"/>
- </vbox>
+ <hbox id="left_deck_vbox" flex="1" persist="height">
+ <deck id="patron_left_deck" persist="height"/>
+ </hbox>
+ <splitter id="pdms1y" collapse="before" persist="state hidden"><grippy id="pdmsg1"/></splitter>
+ <hbox id="right_deck_vbox" flex="8" persist="height">
+ <deck id="patron_right_deck" persist="height"/>
+ </hbox>
</vbox>
</vbox>
</box>
@@ -96,7 +96,7 @@
<menuitem label="&staff.patron_display.verify_password.label;" accesskey="&staff.patron_display.verify_password.accesskey;" command="cmd_verify_credentials"/>
<menuitem label="&staff.main.menu.admin.user_edit.label;" accesskey="&staff.main.menu.admin.user_edit.accesskey;" command="cmd_perm_editor"/>
<menuitem label="&staff.patron.display_overlay.exit.label;" accesskey="&staff.patron.display_overlay.exit.accesskey;" command="cmd_patron_exit"/>
- <menuitem label="&staff.patron_display.toggle_summary.label;" accesskey="&staff.patron_display.toggle_summary.label;" oncommand="document.getElementById('patron_left_deck').hidden = ! document.getElementById('patron_left_deck').hidden;"/>
+ <menuitem label="&staff.patron_display.toggle_summary.label;" accesskey="&staff.patron_display.toggle_summary.label;" command="cmd_patron_toggle_summary"/>
</menupopup>
</button>
</row>
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2009-03-05 17:39:25 UTC (rev 12426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2009-03-05 17:51:40 UTC (rev 12427)
@@ -32,12 +32,12 @@
<label class="hideme invalid_address_indicator" value="&staff.patron.display_overlay.invalid_address.value;"/>
</hbox>
<hbox id="PatronNotNavBar" flex="1" class="my_bg">
- <vbox id="pdm3z" flex="1" persist="width">
- <deck id="patron_left_deck"/>
+ <vbox id="left_deck_vbox" flex="1" persist="width">
+ <deck id="patron_left_deck" persist="width"/>
</vbox>
- <splitter id="pdms1z" orient="horizontal" collapse="before" persist="state hidden"><grippy id="pdmsg1"/></splitter>
- <vbox id="pdm4z" flex="3" persist="width">
- <deck id="patron_right_deck"/>
+ <splitter id="pdms1z" collapse="before" persist="state hidden"><grippy id="pdmsg1"/></splitter>
+ <vbox id="right_deck_vbox" flex="3" persist="width">
+ <deck id="patron_right_deck" persist="width"/>
</vbox>
</hbox>
</vbox>
@@ -96,7 +96,7 @@
<menuitem label="&staff.patron_display.verify_password.label;" accesskey="&staff.patron_display.verify_password.accesskey;" command="cmd_verify_credentials"/>
<menuitem label="&staff.main.menu.admin.user_edit.label;" accesskey="&staff.main.menu.admin.user_edit.accesskey;" command="cmd_perm_editor"/>
<menuitem label="&staff.patron.display_overlay.exit.label;" accesskey="&staff.patron.display_overlay.exit.accesskey;" command="cmd_patron_exit"/>
- <menuitem label="&staff.patron_display.toggle_summary.label;" accesskey="&staff.patron_display.toggle_summary.label;" oncommand="document.getElementById('patron_left_deck').hidden = ! document.getElementById('patron_left_deck').hidden;"/>
+ <menuitem label="&staff.patron_display.toggle_summary.label;" accesskey="&staff.patron_display.toggle_summary.label;" command="cmd_patron_toggle_summary"/>
</menupopup>
</button>
</row>
More information about the open-ils-commits
mailing list