pari: branch 2.0 r3914 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Sep 29 10:54:45 CDT 2008


Author: pari
Date: Mon Sep 29 10:54:45 2008
New Revision: 3914

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3914
Log:

Second attempt at fixing : AA50-2279 - gui panics when aa50 is rebooted while it is displaying the "call features" tab




Modified:
    branches/2.0/config/js/index.js

Modified: branches/2.0/config/js/index.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=3914&r1=3913&r2=3914
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Mon Sep 29 10:54:45 2008
@@ -63,12 +63,13 @@
 			this.isRetryPing = false;
 			var makePingRequest = function(){
 				var verifyPingResult = function(t) {
-					if(!t.toLowerCase().match('pong')){
+					if(!t.toLowerCase().contains('pong')){
 						ASTGUI.debugLog('PING Request: INVALID SESSION' , 'update');
 						if( parent.sessionData.DEBUG_MODE ){
 							alert('PING Request: INVALID SESSION' + '\n' + 'Click OK to reload');
 						}
-						window.location.reload(); return true; 
+						onLogInFunctions.makePings.stop();
+						top.window.location.replace(top.window.location.href); return true; 
 					}else{
 						ASTGUI.debugLog('PING Request: Success' , 'get');
 					}




More information about the asterisk-gui-commits mailing list