pari: branch 2.0 r3970 - in /branches/2.0/config: ./ js/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Oct 20 09:14:29 CDT 2008
Author: pari
Date: Mon Oct 20 09:14:28 2008
New Revision: 3970
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3970
Log:
Remember 'Show Advanced Options' preference using a cookie
Modified:
branches/2.0/config/flipadvanced.html
branches/2.0/config/js/index.js
branches/2.0/config/js/pbx.js
Modified: branches/2.0/config/flipadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/flipadvanced.html?view=diff&rev=3970&r1=3969&r2=3970
==============================================================================
--- branches/2.0/config/flipadvanced.html (original)
+++ branches/2.0/config/flipadvanced.html Mon Oct 20 09:14:28 2008
@@ -63,7 +63,8 @@
var update_status = function(){
- if(parent.sessionData.advancedmode == true ){
+ var am = ASTGUI.cookies.getCookie('advancedmode');
+ if( am && am == 'yes' ){
_$('flip_button').innerHTML = 'Hide Advanced Options';
_$('flip_decsription').innerHTML = "Clicking the 'Hide Advanced Options' button below removes the advanced menu items on the left hand sidebar"
+ "<BR><BR><B>Notice!</B> Digium does not provide support for the options configurable in the Advanced menu items. "
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=3970&r1=3969&r2=3970
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Mon Oct 20 09:14:28 2008
@@ -441,6 +441,8 @@
}else{
readcfg.ztScanConf();
}
+
+ miscFunctions.show_advancedMode();
}
};
@@ -508,13 +510,24 @@
}
},
+ show_advancedMode : function(){
+ var am = ASTGUI.cookies.getCookie('advancedmode');
+ if( am && am == 'yes' ){
+ $(".AdvancedMode").show();
+ }else{
+ $(".AdvancedMode").hide();
+ }
+ },
+
flip_advancedmode: function(){
- if(sessionData.advancedmode == true ){
+ var am = ASTGUI.cookies.getCookie('advancedmode');
+ ASTGUI.FirebugLog( am );
+ if( am && am == 'yes' ){
+ ASTGUI.cookies.setCookie( 'advancedmode' , 'no' );
$(".AdvancedMode").hide();
- sessionData.advancedmode = false;
}else{
+ ASTGUI.cookies.setCookie( 'advancedmode' , 'yes' );
$(".AdvancedMode").show();
- sessionData.advancedmode = true;
}
},
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=3970&r1=3969&r2=3970
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Mon Oct 20 09:14:28 2008
@@ -886,7 +886,7 @@
},
addIAXTrunk: function( tr , cbf ){ //
- // usage:: astgui_managetrunks.addIAXTrunk( {'host':'iaxtel.com' , username:'my_username', secret:'my_secret', (required)fallback: '6001' ....}, cbf ) ;
+ // usage:: astgui_managetrunks.addIAXTrunk( {'host':'iaxtel.com' , username:'my_username', secret:'my_secret', ....}, cbf ) ;
if( !tr.hasOwnProperty('host')|| !tr.hasOwnProperty('username') || !tr.hasOwnProperty('secret') ){ return false; } //check for required parameters
// add some default values for any IAXTrunk
More information about the asterisk-gui-commits
mailing list