pari: trunk r219 - /trunk/config/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Jan 9 09:34:15 MST 2007


Author: pari
Date: Tue Jan  9 10:34:14 2007
New Revision: 219

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=219
Log:
Show browser incompatibility alert in IE,Konqueror and safari

Modified:
    trunk/config/cfgadvanced.html
    trunk/config/cfgappliance.html
    trunk/config/cfgbasic.html
    trunk/config/home.html

Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?view=diff&rev=219&r1=218&r2=219
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Tue Jan  9 10:34:14 2007
@@ -18,7 +18,12 @@
  * at the top of the source tree.
  *
 -->
-
+<script>
+var browser_alert = "Asterisk Configuration GUI is currently supported in Firefox (recommended 1.5 or above) \n SeaMonkey (1.0 or above), Netscape (8.0 or above) and Opera (9.0 or above) \n\n" +	"Support for other browsers is under development \n" + 	" and will be supported in future versions";
+if( navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("Konqueror") != -1 || navigator.userAgent.indexOf("Safari") != -1 ){
+	alert(browser_alert);
+}
+</script>
 <script src="scripts/prototype.js"></script>
 <script src="scripts/rico.js"></script>
 <script src="scripts/astman.js"></script>

Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?view=diff&rev=219&r1=218&r2=219
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Tue Jan  9 10:34:14 2007
@@ -18,7 +18,12 @@
  * at the top of the source tree.
  *
 -->
-
+<script>
+var browser_alert = "Asterisk Configuration GUI is currently supported in Firefox (recommended 1.5 or above) \n SeaMonkey (1.0 or above), Netscape (8.0 or above) and Opera (9.0 or above) \n\n" +	"Support for other browsers is under development \n" + 	" and will be supported in future versions";
+if( navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("Konqueror") != -1 || navigator.userAgent.indexOf("Safari") != -1 ){
+	alert(browser_alert);
+}
+</script>
 <script src="scripts/prototype.js"></script>
 <script src="scripts/rico.js"></script>
 <script src="scripts/astman.js"></script>

Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=219&r1=218&r2=219
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Tue Jan  9 10:34:14 2007
@@ -18,7 +18,13 @@
  * at the top of the source tree.
  *
 -->
-
+<script>
+var browser_alert = "Asterisk Configuration GUI is currently supported in Firefox (recommended 1.5 or above) \n SeaMonkey (1.0 or above), Netscape (8.0 or above) and Opera (9.0 or above) \n\n" +	"Support for other browsers is under development \n" + 	" and will be supported in future versions";
+alert( navigator.userAgent );
+if( navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("Konqueror") != -1 || navigator.userAgent.indexOf("Safari") != -1 ){
+	alert(browser_alert);
+}
+</script>
 <script src="scripts/prototype.js"></script>
 <script src="scripts/rico.js"></script>
 <script src="scripts/astman.js"></script>

Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=219&r1=218&r2=219
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Tue Jan  9 10:34:14 2007
@@ -73,13 +73,6 @@
 		parent.document.getElementById('logoutlink').innerHTML = "Logout";
 		parent.document.getElementById('logoutlink').onclick = parent.Logoff ;
 		parent.astmanEngine.pollEvents();
-
-		if(navigator.appName.match("Microsoft")){
-			alert("Asterisk Configuration GUI is currently not supported in Microsoft Internet Explorer \n"+
-			"It is recommended that you use Firefox (1.5 or above) or Opera 9.x \n\n" +
-			"Support for Microsoft Internet Explorer is under development \n"+
-			" and will be supported in future versions");
-		}
 	}
 	
 	function loggedOff() {



More information about the asterisk-gui-commits mailing list