[open-ils-commits] r12608 - branches/rel_1_4/Open-ILS/web/opac/common/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 19 10:48:16 EDT 2009
Author: erickson
Date: 2009-03-19 10:48:14 -0400 (Thu, 19 Mar 2009)
New Revision: 12608
Modified:
branches/rel_1_4/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: branches/rel_1_4/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- branches/rel_1_4/Open-ILS/web/opac/common/js/opac_utils.js 2009-03-19 14:47:49 UTC (rev 12607)
+++ branches/rel_1_4/Open-ILS/web/opac/common/js/opac_utils.js 2009-03-19 14:48:14 UTC (rev 12608)
@@ -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