pari: branch 2.0 r3971 - /branches/2.0/config/js/astman.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Oct 20 09:29:33 CDT 2008
Author: pari
Date: Mon Oct 20 09:29:33 2008
New Revision: 3971
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3971
Log:
RemoveCookie function
Modified:
branches/2.0/config/js/astman.js
Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=3971&r1=3970&r2=3971
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Mon Oct 20 09:29:33 2008
@@ -525,6 +525,10 @@
setCookie: function(x , y){ // ASTGUI.cookies.setCookie( 'something' , 'valueofSomething' );
var tmp = x + '=' + y + '; path = /' ;
top.document.cookie = tmp;
+ },
+
+ removeCookie: function(x){
+ top.document.cookie = x + '=somevalue; expires=Fri, 22 Oct 1999 00:00:00 UTC; path=/' ;
},
clearCookies: function(){ // ASTGUI.cookies.clearCookies()
More information about the asterisk-gui-commits
mailing list