pari: trunk r349 - /trunk/config/scripts/astman.js
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu Feb 15 21:00:59 MST 2007
Author: pari
Date: Thu Feb 15 22:00:58 2007
New Revision: 349
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=349
Log:
Removing alert that zapscan.conf is not found - Some one the forums complained that the gui is constantly throwing an alert that zapscan.conf is not found. So, this commit is for those people who are totally new to linux & asterisk and do not know to 'touch a missing file that the gui just complained about' - the gui now creates the required missing file
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=349&r1=348&r2=349
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Thu Feb 15 22:00:58 2007
@@ -1551,7 +1551,9 @@
this.doConfig = function(t, box) {
if(t[0].headers['message']){
if( box.config_file == "zapscan.conf" ){
- alert( "Note: Unable to find /etc/asterisk/zapscan.conf\nPlease run Zapscan manually ! \n\n Click 'OK' to try loading the rest of the page." );
+ //alert( "Note: Unable to find /etc/asterisk/zapscan.conf\nPlease run Zapscan manually ! \n\n Click 'OK' to try loading the rest of the page." );
+ parent.astmanEngine.run_tool("/bin/touch /etc/asterisk/zapscan.conf", function(){ window.location.href = window.location.href ; } );
+ return ;
} else if( t[0].headers['message'] == "Config file not found" && box.config_file != "zapscan.conf"){
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 ;
More information about the asterisk-gui-commits
mailing list