pari: trunk r238 - /trunk/config/scripts/astman.js

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Jan 11 13:26:50 MST 2007


Author: pari
Date: Thu Jan 11 14:26:49 2007
New Revision: 238

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=238
Log:
Donot show the redirect alert when being asked to relogin after an expired session 

Modified:
    trunk/config/scripts/astman.js

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=238&r1=237&r2=238
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Thu Jan 11 14:26:49 2007
@@ -1538,6 +1538,8 @@
 	};
 	this.eventResponse = function(t) {
 		if( t.responseText.match("Message: Authentication Required") ){
+				parent.window.onbeforeunload = function(){ }
+				parent.window.onunload = function(){ }				
 				parent.window.location.href = parent.window.location.href ;
 		}
 		me.parseResponse(t, me.doEvents);



More information about the asterisk-gui-commits mailing list