[open-ils-commits] r12532 - in trunk/Open-ILS/web: js/ui templates (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Mar 15 22:44:00 EDT 2009


Author: erickson
Date: 2009-03-15 22:43:58 -0400 (Sun, 15 Mar 2009)
New Revision: 12532

Modified:
   trunk/Open-ILS/web/js/ui/base.js
   trunk/Open-ILS/web/templates/base.tt2
Log:
changed cookie base to the more generic oilsBasePath

Modified: trunk/Open-ILS/web/js/ui/base.js
===================================================================
--- trunk/Open-ILS/web/js/ui/base.js	2009-03-16 02:43:21 UTC (rev 12531)
+++ trunk/Open-ILS/web/js/ui/base.js	2009-03-16 02:43:58 UTC (rev 12532)
@@ -24,7 +24,7 @@
         });
         return;
     }
-    dojo.cookie('ses', authtoken, {path : oilsCookieBase});
+    dojo.cookie('ses', authtoken, {path : oilsBasePath});
     openils.User.authtoken = authtoken;
     openils.User.workstation = dojo.cookie('oils.ws');
 }
@@ -36,7 +36,7 @@
         passwd: dojo.byId('oils-login-password').value,
         type: 'staff' // hardcode for now
     });
-    dojo.cookie('ses', user.authtoken, {path : oilsCookieBase});
+    dojo.cookie('ses', user.authtoken, {path : oilsBasePath});
     location.href = location.href;
     return false;
 }

Modified: trunk/Open-ILS/web/templates/base.tt2
===================================================================
--- trunk/Open-ILS/web/templates/base.tt2	2009-03-16 02:43:21 UTC (rev 12531)
+++ trunk/Open-ILS/web/templates/base.tt2	2009-03-16 02:43:58 UTC (rev 12532)
@@ -10,7 +10,7 @@
             djConfig="parseOnLoad: true, isDebug:true"></script>
         <script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/md5.js"></script>
         <script>
-            var oilsCookieBase = '[% ctx.base_uri %]';
+            var oilsBasePath = '[% ctx.base_uri %]';
         </script>
         <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/base.js"></script>
     </head>



More information about the open-ils-commits mailing list