jlyons: branch asterisknow r355 - in /branches/asterisknow: ./ config/scripts/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Fri Feb 16 13:12:50 MST 2007


Author: jlyons
Date: Fri Feb 16 14:12:49 2007
New Revision: 355

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=355
Log:
Merged revisions 349 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-gui/trunk

........
r349 | pari | 2007-02-15 22:00:58 -0600 (Thu, 15 Feb 2007) | 1 line

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:
    branches/asterisknow/   (props changed)
    branches/asterisknow/config/scripts/astman.js

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Fri Feb 16 14:12:49 2007
@@ -1,1 +1,1 @@
-/trunk:1-346
+/trunk:1-346,349

Modified: branches/asterisknow/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/scripts/astman.js?view=diff&rev=355&r1=354&r2=355
==============================================================================
--- branches/asterisknow/config/scripts/astman.js (original)
+++ branches/asterisknow/config/scripts/astman.js Fri Feb 16 14:12:49 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