pari: branch 2.0 r4391 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jan 5 10:31:28 CST 2009


Author: pari
Date: Mon Jan  5 10:31:25 2009
New Revision: 4391

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

 Bugfix: 'Apply Changes' button is being displayed again after cliking 'Apply Changes'



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

Modified: branches/2.0/config/js/index.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=4391&r1=4390&r2=4391
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Mon Jan  5 10:31:25 2009
@@ -597,6 +597,9 @@
 	},
 
 	applyChanges : function(cb){
+		if( sessionData.hasOwnProperty('gui_version') && sessionData.gui_version.trim() ){
+			ASTGUI.updateaValue({ file: ASTGUI.globals.configfile , context :'general', variable :'config_gui_version', value : sessionData.gui_version });
+		}
 		var u = _$('applyChanges_Button');
 		if (sessionData.PLATFORM.isAST_1_4) {
 			var t = ASTGUI.cliCommand('reload') ;
@@ -606,10 +609,6 @@
 		u.style.display = 'none';
 		ASTGUI.cookies.removeCookie('configFilesChanged');
 		ASTGUI.feedback({msg:'Asterisk Reloaded !!', showfor: 3 , color: '#5D7CBA', bgcolor: '#FFFFFF'}) ;
-
-		if( sessionData.hasOwnProperty('gui_version') && sessionData.gui_version.trim() ){
-			ASTGUI.updateaValue({ file: ASTGUI.globals.configfile , context :'general', variable :'config_gui_version', value : sessionData.gui_version });
-		}
 
 		if(sessionData.PLATFORM.isAA50 ){
 			//TODO - Save Changes




More information about the asterisk-gui-commits mailing list