pari: trunk r401 - in /trunk/config: guialert.html scripts/astman.js

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Mar 7 14:23:33 MST 2007


Author: pari
Date: Wed Mar  7 15:23:33 2007
New Revision: 401

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=401
Log:
create jingle.conf and providers.conf if they are not found

Modified:
    trunk/config/guialert.html
    trunk/config/scripts/astman.js

Modified: trunk/config/guialert.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/guialert.html?view=diff&rev=401&r1=400&r2=401
==============================================================================
--- trunk/config/guialert.html (original)
+++ trunk/config/guialert.html Wed Mar  7 15:23:33 2007
@@ -6,6 +6,7 @@
 	if(top.alertmsgtype == 1 ){
 		document.getElementById('message').innerHTML = top.alertmsg ;
 		document.getElementById('div_alert').style.display = "" ;
+		document.getElementById('ok').focus() ;
 	}
 }
 

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=401&r1=400&r2=401
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Wed Mar  7 15:23:33 2007
@@ -1707,11 +1707,11 @@
 	};
 	this.doConfig = function(t, box) {
 		if( t[0].headers['message'] && t[0].headers['message'] == "Config file not found" ){
-					if( box.config_file == "zapscan.conf" || box.config_file == "contactinfo.conf" ){
+					if( box.config_file == "zapscan.conf" || box.config_file == "contactinfo.conf" || box.config_file == "jingle.conf" || box.config_file == "providers.conf" ){
 						parent.astmanEngine.run_tool("/bin/touch /etc/asterisk/"+box.config_file,	function(){	  window.location.href = window.location.href ; } );
 						return ;
 					} else {
-						gui_alert( "Asterisk says it cannot find a required config file (" + box.config_file + ") \n You will be now redirected to the main page !" );
+						alert( "Asterisk says it cannot find a required config file (" + box.config_file + ") \n You will be now redirected to the main page !" );
 						parent.window.location.href = parent.window.location.href ;
 						return ;
 					}



More information about the asterisk-gui-commits mailing list