From: phasefx Date: Mon, 19 Oct 2009 17:16:22 +0000 (+0000) Subject: backport changeset 14396: Tweak the key used for oils_persist so that saved settings... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bf97e0ce6c8c33bc7e88f06adc8e697dccec84c7;p=Evergreen.git 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_0@14498 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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];