pari: branch 2.0 r4256 - in /branches/2.0/config: index.html js/index.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Dec 1 18:28:51 CST 2008
Author: pari
Date: Mon Dec 1 18:28:51 2008
New Revision: 4256
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4256
Log:
Show google talk panel only when 'chan_gtalk & res_jabber' are loaded
Modified:
branches/2.0/config/index.html
branches/2.0/config/js/index.js
Modified: branches/2.0/config/index.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/index.html?view=diff&rev=4256&r1=4255&r2=4256
==============================================================================
--- branches/2.0/config/index.html (original)
+++ branches/2.0/config/index.html Mon Dec 1 18:28:51 2008
@@ -178,11 +178,10 @@
<div class="ui-accordion-link">Follow Me</div>
<div class="ui-accordion-desc"></div>
</div>
- <div page='gtalk.html'>
+ <div page='gtalk.html' style='display:none'>
<div class="ui-accordion-link">Google Talk</div>
<div class="ui-accordion-desc">Send or Receive calls from your buddies on Google Talk network</div>
</div>
-
<div page='directory.html'>
<div class="ui-accordion-link">Directory</div>
<div class="ui-accordion-desc">Preferences for 'Dialing by Name Directory'</div>
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=4256&r1=4255&r2=4256
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Mon Dec 1 18:28:51 2008
@@ -425,6 +425,14 @@
if( !tmp_continue )return;
$(".AdvancedMode").hide();
+
+ setTimeout( function(){
+ var modules_show = ASTGUI.cliCommand('module show');
+ if( modules_show.contains('res_jabber.so') && modules_show.contains('chan_gtalk.so') ){
+ parent.miscFunctions.hide_panel('gtalk.html', 1);
+ }
+ }, 2000);
+
if(sessionData.PLATFORM.isAA50 ){
$(".notinAA50").remove();
$(".forAA50").show();
@@ -523,11 +531,15 @@
return TI_LIST;
},
- hide_panel: function(fname){ // parent.miscFunctions.hide_panel('page.html')
+ hide_panel: function(fname , show){ // parent.miscFunctions.hide_panel('page.html' , 0/1 )
var t = $('.ui-accordion-link') ;
for(var p=0; p < t.length ; p++){
if( $(t[p].parentNode).attr("page") == fname ){
- $(t[p].parentNode).hide();
+ if(show){
+ $(t[p].parentNode).show();
+ }else{
+ $(t[p].parentNode).hide();
+ }
return;
}
}
More information about the asterisk-gui-commits
mailing list