espiceland: branch 2.0 r5173 - /branches/2.0/config/js/jquery.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Apr 13 15:29:22 CDT 2011
Author: espiceland
Date: Wed Apr 13 15:29:19 2011
New Revision: 5173
URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5173
Log:
Fix horrible indentation and formatting.
Modified:
branches/2.0/config/js/jquery.js
Modified: branches/2.0/config/js/jquery.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/jquery.js?view=diff&rev=5173&r1=5172&r2=5173
==============================================================================
--- branches/2.0/config/js/jquery.js (original)
+++ branches/2.0/config/js/jquery.js Wed Apr 13 15:29:19 2011
@@ -2690,21 +2690,19 @@
var requestDone = false;
///// ADDED FOR ASTERISK GUI //////
- try{
- if( ASTGUI && s.url.contains('action=updateconfig&') ){
- // update cache status flag for the modified file
- var tmp_filename = ASTGUI.parseGETparam( s.url , 'srcfilename');
- if( !top.sessionData.FileCache.hasOwnProperty(tmp_filename) ){ top.sessionData.FileCache[tmp_filename] = {}; }
- top.sessionData.FileCache[tmp_filename].modified = true;
-
- if( s.url.contains('&srcfilename=http.conf&') ){
-
- }else{
- top.cookies.set( 'configFilesChanged' , 'yes' );
- parent.$('#applyChanges_Button').show();
- }
+ try{
+ if( ASTGUI && s.url.contains('action=updateconfig&') ){
+ // update cache status flag for the modified file
+ var tmp_filename = ASTGUI.parseGETparam( s.url , 'srcfilename');
+ if( !top.sessionData.FileCache.hasOwnProperty(tmp_filename) ){ top.sessionData.FileCache[tmp_filename] = {}; }
+ top.sessionData.FileCache[tmp_filename].modified = true;
+
+ if( !s.url.contains('&srcfilename=http.conf&') ){
+ top.cookies.set( 'configFilesChanged' , 'yes' );
+ parent.$('#applyChanges_Button').show();
}
- }catch(err){}
+ }
+ }catch(err){}
/////
// Create the request object; Microsoft failed to properly
// implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
More information about the asterisk-gui-commits
mailing list