[open-ils-commits] r18002 - in trunk/Open-ILS/xul/staff_client: chrome/content/OpenILS server/cat (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Sep 26 03:06:03 EDT 2010
Author: phasefx
Date: 2010-09-26 03:05:58 -0400 (Sun, 26 Sep 2010)
New Revision: 18002
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul
Log:
make the splitters in the z39.50 interface sticky
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js 2010-09-26 06:34:22 UTC (rev 18001)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js 2010-09-26 07:05:58 UTC (rev 18002)
@@ -113,6 +113,7 @@
}
prefs.setCharPref( key, value );
// TODO: Need to add logic for window resizing, splitter repositioning, grippy state, etc.
+ // NOTE: oils_persist_peers and oils_persist="width" on those peers can help with the elements adjacent to a splitter
}
if (target.hasAttribute('oils_persist_peers') && ! ev.cancelable) { // We abuse the .cancelable field on the oils_persist event to prevent looping
var peer_list = target.getAttribute('oils_persist_peers').split(' ');
Modified: trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul 2010-09-26 06:34:22 UTC (rev 18001)
+++ trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul 2010-09-26 07:05:58 UTC (rev 18002)
@@ -131,7 +131,7 @@
<button id="search" label="&staff.cat.z3950.search.label;" accesskey="&staff.cat.z3950.search.accesskey;" disabled="true"/>
</hbox>
</groupbox>
- <splitter id="x_splitter" collapse="after" oils_persist="state hidden"><grippy id="splitter_grippy1"/></splitter>
+ <splitter id="x_splitter" collapse="after" oils_persist="state hidden" oils_persist_peers="x_splitter1 x_splitter2"><grippy id="splitter_grippy1"/></splitter>
<groupbox id="x_splitter2" oils_persist="width" flex="1">
<caption label="&staff.cat.z3950.service_credentials.label;"/>
<grid flex="1">
@@ -159,7 +159,7 @@
</hbox>
</groupbox>
</hbox>
- <splitter id="z_splitter" collapse="before" oils_persist="state hidden"><grippy id="splitter_grippy2"/></splitter>
+ <splitter id="z_splitter" collapse="before" oils_persist="state hidden" oils_persist_peers="top_pane z_splitter2"><grippy id="splitter_grippy2"/></splitter>
<groupbox id="z_splitter2" oils_persist="height" flex="1">
<caption label="&staff.cat.z3950.results_caption.label;"/>
<hbox>
@@ -188,9 +188,9 @@
<button id="toggle_form_btn" command="toggle_form"/>
</hbox>
<hbox flex="1">
- <image id="jacket_image" />
- <splitter id="jacket_splitter" collapse="before" oils_persist="state hidden"><grippy id="jacket_splitter_grippy"/></splitter>
- <deck id="deck" flex="1">
+ <image id="jacket_image" oils_persist="width"/>
+ <splitter id="jacket_splitter" collapse="before" oils_persist="state hidden" oils_persist_peers="jacket_image deck"><grippy id="jacket_splitter_grippy" /></splitter>
+ <deck id="deck" flex="1" oils_persist="width">
<tree id="results" flex="1" enableColumnDrag="true" seltype="single"/>
<iframe id="marc_frame" src="/xul/server/cat/marc_view.html" flex="1"/>
</deck>
More information about the open-ils-commits
mailing list