backport changeset 14396: Tweak the key used for oils_persist so that saved settings...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 19 Oct 2009 17:16:22 +0000 (17:16 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 19 Oct 2009 17:16:22 +0000 (17:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@14498 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js

index dba2763..f915d24 100644 (file)
@@ -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];