pari: branch 2.0 r4461 - /branches/2.0/config/js/menus.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Jan 21 14:05:44 CST 2009


Author: pari
Date: Wed Jan 21 14:05:44 2009
New Revision: 4461

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

 'Advanced mode' is no longer stored in the global variable.
 Use the cookie instead for checking advanced mode.

 


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

Modified: branches/2.0/config/js/menus.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/menus.js?view=diff&rev=4461&r1=4460&r2=4461
==============================================================================
--- branches/2.0/config/js/menus.js (original)
+++ branches/2.0/config/js/menus.js Wed Jan 21 14:05:44 2009
@@ -722,7 +722,9 @@
 
 var localajaxinit = function(){
 	top.document.title = 'Voice Menus Configuration' ;
-	if(parent.sessionData.advancedmode == true ){
+
+	var am = ASTGUI.cookies.getCookie('advancedmode');
+	if( am && am == 'yes' ){
 		ASTGUI.selectbox.append('newStep_select_action', 'Custom App', 'CustomApp');
 	}
 




More information about the asterisk-gui-commits mailing list