pari: branch 2.0 r4376 - /branches/2.0/config/js/pbx.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Dec 18 16:18:06 CST 2008


Author: pari
Date: Thu Dec 18 16:18:05 2008
New Revision: 4376

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4376
Log:

 add some debug messages


Modified:
    branches/2.0/config/js/pbx.js

Modified: branches/2.0/config/js/pbx.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/pbx.js?view=diff&rev=4376&r1=4375&r2=4376
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Thu Dec 18 16:18:05 2008
@@ -1864,6 +1864,9 @@
 	var n_Lower = n.toLowerCase();
 	if( n_Lower.contains('response: error') && n_Lower.contains('message: config file not found') ){
 		parent.ASTGUI.systemCmd( 'touch ' + top.sessionData.directories.asteriskConfig + ASTGUI.globals.configfile , function(){
+			if( top.sessionData.DEBUG_MODE ){
+				alert('Creating' + ASTGUI.globals.configfile + ' :: astgui_updateConfigFromOldGui() \n Click OK to Reload');
+			}
 			top.window.location.reload();
 		});
 		return false;
@@ -2220,6 +2223,9 @@
 		sa.callActions( function(){
 			SU.callActions( function(){
 				var u = ASTGUI.updateaValue({ file: ASTGUI.globals.configfile, context: 'general', variable: 'config_upgraded', value: 'yes' }) ;
+				if( top.sessionData.DEBUG_MODE ){
+					alert('Upgraded Configuration :: astgui_updateConfigFromOldGui() \n Click OK to Reload');
+				}
 				top.window.location.reload();
 			});
 		});




More information about the asterisk-gui-commits mailing list