pari: branch 2.0 r4225 - /branches/2.0/config/js/astman.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Nov 26 11:45:13 CST 2008


Author: pari
Date: Wed Nov 26 11:45:13 2008
New Revision: 4225

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

 Uh!
 So this was why the ajax requests in configure_gui.html are not working.




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

Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=4225&r1=4224&r2=4225
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Wed Nov 26 11:45:13 2008
@@ -3017,12 +3017,14 @@
 		};
 
 		ASTGUI.showToolTips(); // Load any tooltips in this page
-		if( window.jQuery ){
-			$().ajaxStart( function(){ parent.document.getElementById('ajaxstatus').style.display = ''; });
-			$().ajaxStop( function(){
-				setTimeout( function(){parent.document.getElementById('ajaxstatus').style.display = 'none';}, 500 );
-			});
-		}
+		try{
+			if( window.jQuery ){
+				$().ajaxStart( function(){ parent.document.getElementById('ajaxstatus').style.display = ''; });
+				$().ajaxStop( function(){
+					setTimeout( function(){parent.document.getElementById('ajaxstatus').style.display = 'none';}, 500 );
+				});
+			}
+		}catch(err){}
 		if( window.localajaxinit && (typeof localajaxinit == 'function' ) ){
 			window.localajaxinit();
 		}




More information about the asterisk-gui-commits mailing list