From 4febee8f56f540e1a6700ce6f952724d7c58530f Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 13 Oct 2009 06:57:22 +0000 Subject: [PATCH] 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/trunk@14396 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 48a518665f..583740d336 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 @@ -56,7 +56,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