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

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Jan 30 18:51:42 MST 2007


Author: pari
Date: Tue Jan 30 19:51:42 2007
New Revision: 305

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=305
Log:
Donot poll events for non Mozilla browsers

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=305&r1=304&r2=305
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue Jan 30 19:51:42 2007
@@ -1547,7 +1547,11 @@
 				parent.window.onunload = function(){ }				
 				parent.window.location.href = parent.window.location.href ;
 		}
-		me.parseResponse(t, me.doEvents);
+		if( navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("Konqueror") != -1 || navigator.userAgent.indexOf("Safari") != -1 || navigator.userAgent.indexOf("Opera") != -1){
+			// Donot Poll events for non mozilla Browsers			
+		}else{ 
+			me.parseResponse(t, me.doEvents);
+		}
 	};
 	this.gotConfig = function(t, box) {
 		me.parseResponse(t, me.doConfig, box);



More information about the asterisk-gui-commits mailing list