[open-ils-commits] r15690 - in trunk/Open-ILS/xul/staff_client: chrome/content/main server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 4 10:27:58 EST 2010
Author: phasefx
Date: 2010-03-04 10:27:56 -0500 (Thu, 04 Mar 2010)
New Revision: 15690
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
When the patron search interface is spawned from the patron registration interface for listing potential duplicate patrons, correctly handle the horizontal patron summary setting.
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-03-04 05:04:58 UTC (rev 15689)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-03-04 15:27:56 UTC (rev 15690)
@@ -1122,10 +1122,7 @@
'spawn_search' : function(s) {
var obj = this;
obj.error.sdump('D_TRACE', offlineStrings.getFormattedString('menu.spawn_search.msg', [js2JSON(s)]) );
- obj.data.stash_retrieve();
- var loc = obj.url_prefix(urls.XUL_PATRON_DISPLAY);
- loc += '?doit=1&query=' + window.escape(js2JSON(s));
- obj.new_tab( loc, {}, {} );
+ obj.new_patron_tab( {}, { 'doit' : 1, 'query' : js2JSON(s) } );
},
'init_tab_focus_handlers' : function() {
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2010-03-04 05:04:58 UTC (rev 15689)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2010-03-04 15:27:56 UTC (rev 15690)
@@ -220,7 +220,7 @@
function spawn_search(s) {
obj.error.sdump('D_TRACE', $("commonStrings").getFormattedString('staff.patron.display.cmd_patron_edit.edit_search', [js2JSON(s)]) );
obj.OpenILS.data.stash_retrieve();
- xulG.new_patron_tab( {}, { 'doit' : 1, 'query' : s } );
+ xulG.new_patron_tab( {}, { 'doit' : 1, 'query' : js2JSON(s) } );
}
function spawn_editor(p) {
More information about the open-ils-commits
mailing list