[open-ils-commits] r14499 - tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/OpenILS (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 19 13:16:28 EDT 2009
Author: phasefx
Date: 2009-10-19 13:16:25 -0400 (Mon, 19 Oct 2009)
New Revision: 14499
Modified:
tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Log:
backport changeset 14396: Tweak the key used for oils_persist so that saved settings will survive staff client BUILD_ID changes.
Modified: tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
===================================================================
--- tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js 2009-10-19 17:16:22 UTC (rev 14498)
+++ tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js 2009-10-19 17:16:25 UTC (rev 14499)
@@ -41,7 +41,8 @@
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']);
var nodes = document.getElementsByAttribute('oils_persist','*');
for (var i = 0; i < nodes.length; i++) {
- var base_key = 'oils_persist_' + String(location.hostname + location.pathname + '_' + nodes[i].getAttribute('id')).replace('/','_','g') + '_';
+ var filename = location.pathname.split('/')[ location.pathname.split('/').length - 1 ];
+ var base_key = 'oils_persist_' + String(location.hostname + '_' + filename + '_' + nodes[i].getAttribute('id')).replace('/','_','g') + '_';
var attribute_list = nodes[i].getAttribute('oils_persist').split(' ');
for (var j = 0; j < attribute_list.length; j++) {
var key = base_key + attribute_list[j];
More information about the open-ils-commits
mailing list