From e314e23d8b56d9545a49ba00ea209274b8c42ce3 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 19 Oct 2009 17:16:18 +0000 Subject: [PATCH] backport changeset 14396: Tweak the key used for oils_persist so that saved settings will survive staff client BUILD_ID changes. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@14497 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js index dba276354a..f915d244fe 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js @@ -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]; -- 2.11.0