bkruse: branch 2.0 r4108 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Nov 14 16:42:10 CST 2008


Author: bkruse
Date: Fri Nov 14 16:42:10 2008
New Revision: 4108

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4108
Log:
Use 'module reload' instead of 'reload' on 1.6 and above.
That function for figuring out the platform is useful now!
(closes issue #13896)

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=4108&r1=4107&r2=4108
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Fri Nov 14 16:42:10 2008
@@ -538,8 +538,12 @@
 	},
 
 	applyChanges : function(cb){
-		var t = ASTGUI.cliCommand('reload') ;
 		var u = _$('applyChanges_Button');
+		if (sessionData.PLATFORM.isAST_1_4) {
+			var t = ASTGUI.cliCommand('reload') ;
+		} else {
+			var t = ASTGUI.cliCommand('module reload');
+		}
 		u.style.display = 'none';
 		ASTGUI.cookies.removeCookie('configFilesChanged');
 		ASTGUI.feedback({msg:'Asterisk Reloaded !!', showfor: 3 , color: '#5D7CBA', bgcolor: '#FFFFFF'}) ;




More information about the asterisk-gui-commits mailing list