[open-ils-commits] r12607 - trunk/Open-ILS/web/opac/common/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 19 10:47:51 EDT 2009
Author: erickson
Date: 2009-03-19 10:47:49 -0400 (Thu, 19 Mar 2009)
New Revision: 12607
Modified:
trunk/Open-ILS/web/opac/common/js/opac_utils.js
Log:
safari does not comply with cookieManager's requests to remove the cookie. dojo.cookie works in Safari. Fixing the crucial cookies now. more later.
Modified: trunk/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- trunk/Open-ILS/web/opac/common/js/opac_utils.js 2009-03-19 13:55:48 UTC (rev 12606)
+++ trunk/Open-ILS/web/opac/common/js/opac_utils.js 2009-03-19 14:47:49 UTC (rev 12607)
@@ -1,5 +1,6 @@
/* - Request ------------------------------------------------------------- */
+
/* define it again here for pages that don't load RemoteRequest */
function isXUL() { try { if(IAMXUL) return true;}catch(e){return false;}; }
@@ -754,13 +755,13 @@
G.user = null;
/* remove any cached data */
- //cookieManager.remove(COOKIE_IDS);
- //cookieManager.remove(COOKIE_SRIDS);
- cookieManager.remove(COOKIE_RIDS);
- cookieManager.remove(COOKIE_SES);
- cookieManager.remove(COOKIE_SKIN);
- cookieManager.remove(COOKIE_SEARCH);
+ dojo.require('dojo.cookie');
+ dojo.cookie(COOKIE_SES, '', {expires:-1});
+ dojo.cookie(COOKIE_RIDS, '', {expires:-1});
+ dojo.cookie(COOKIE_SKIN, '', {expires:-1});
+ dojo.cookie(COOKIE_SEARCH, '', {expires:-1});
+
checkUserSkin("default");
COUNT = 10;
More information about the open-ils-commits
mailing list