[open-ils-commits] r18245 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Oct 8 13:29:24 EDT 2010
Author: phasefx
Date: 2010-10-08 13:29:20 -0400 (Fri, 08 Oct 2010)
New Revision: 18245
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/info_group.js
Log:
moving users in and out of groups produced dialogs that expected vertical patron summaries. this fixes that
Modified: trunk/Open-ILS/xul/staff_client/server/patron/info_group.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/info_group.js 2010-10-08 17:06:52 UTC (rev 18244)
+++ trunk/Open-ILS/xul/staff_client/server/patron/info_group.js 2010-10-08 17:29:20 UTC (rev 18245)
@@ -439,13 +439,19 @@
break;
}
+ var horizontal_interface = String( g.data.hash.aous['ui.circ.patron_summary.horizontal'] ) == 'true';
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserWrite');
var top_xml = '<vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" flex="1" style="overflow: auto"><description>' + second_msg + '</description>';
top_xml += '<hbox><spacer flex="1"/><button label="'+$("patronStrings").getString('staff.patron.info_group.link_patron.move.label')+'"';
top_xml += ' accesskey="'+$("patronStrings").getString('staff.patron.info_group.link_patron.move.accesskey')+'" name="fancy_submit"/>';
top_xml += '<button label="'+$("patronStrings").getString('staff.patron.info_group.link_patron.done.label')+'"';
top_xml += ' accesskey="'+$("patronStrings").getString('staff.patron.info_group.link_patron.done.accesskey')+'" name="fancy_cancel"/></hbox></vbox>';
- var xml = '<vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" flex="1" style="overflow: vertical"><hbox flex="1">';
+ var xml = '<vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" flex="1" style="overflow: vertical">';
+ if (horizontal_interface) {
+ xml += '<vbox flex="1">';
+ } else {
+ xml += '<hbox flex="1">';
+ }
/************/
xml += '<vbox flex="1">';
xml += '<hbox><spacer flex="1"/>';
@@ -470,7 +476,12 @@
xml += '?show_name=1&id=' + patron_b.id() + '"/>';
xml += '</vbox>';
/************/
- xml += '</hbox></vbox>';
+ if (horizontal_interface) {
+ xml += '</vbox>';
+ } else {
+ xml += '</hbox>';
+ }
+ xml += '</vbox>';
var bot_xml = '<vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" flex="1" style="overflow: auto"><hbox>';
bot_xml += '</hbox></vbox>';
More information about the open-ils-commits
mailing list