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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Sep 17 11:08:54 CDT 2008


Author: pari
Date: Wed Sep 17 11:08:54 2008
New Revision: 3827

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

 reload dialplan after adding any missing contexts/variabled needed by the gui



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=3827&r1=3826&r2=3827
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Wed Sep 17 11:08:54 2008
@@ -137,8 +137,11 @@
 		}else{
 			ASTGUI.dialog.waitWhile('Updating Extensions.conf ');
 			sessionData.continueParsing = false ;
-			UPDATES.callActions( function(){ window.location.reload(); } );
-			return;
+			UPDATES.callActions( function(){
+				var t = ASTGUI.cliCommand('dialplan reload') ;
+				setTimeout( function(){ window.location.reload(); } , 500 );
+			} );
+			return ;
 		}
 
 		(function(){




More information about the asterisk-gui-commits mailing list