pari: branch 2.0 r4243 - /branches/2.0/config/gtalk.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Dec 1 11:41:58 CST 2008
Author: pari
Date: Mon Dec 1 11:41:57 2008
New Revision: 4243
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4243
Log:
Setup defaults for gtalk.conf and jabber.conf - if not configured already.
Modified:
branches/2.0/config/gtalk.html
Modified: branches/2.0/config/gtalk.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/gtalk.html?view=diff&rev=4243&r1=4242&r2=4243
==============================================================================
--- branches/2.0/config/gtalk.html (original)
+++ branches/2.0/config/gtalk.html Mon Dec 1 11:41:57 2008
@@ -246,6 +246,34 @@
top.document.title = 'Google Talk Preferences' ;
GTALK_CNF = config2json({ filename:'gtalk.conf', usf:1 }); // buddies
JABBER_CNF = config2json({ filename:'jabber.conf', usf:1 }); // accounts
+
+ (function(){
+ // check if the general section of the config files are configured
+ var u = new listOfSynActions('gtalk.conf') ;
+ if( !GTALK_CNF.hasOwnProperty('general') ){
+ u.new_action('newcat', 'general' , '', '');
+ }
+ if( GTALK_CNF.hasOwnProperty('general') && !GTALK_CNF['general'].hasOwnProperty('allowguest') ){
+ u.new_action('append', 'general' , 'allowguest', 'no');
+ }
+
+ var v = new listOfSynActions('jabber.conf') ;
+ if( !JABBER_CNF.hasOwnProperty('general') ){
+ v.new_action('newcat', 'general' , '', '');
+ }
+ if( JABBER_CNF.hasOwnProperty('general') && !JABBER_CNF['general'].hasOwnProperty('autoprune') ){
+ v.new_action('append', 'general' , 'autoprune', 'no');
+ }
+ if( JABBER_CNF.hasOwnProperty('general') && !JABBER_CNF['general'].hasOwnProperty('autoregister') ){
+ v.new_action('append', 'general' , 'autoregister', 'yes');
+ }
+
+ if( u.actionCount || v.actionCount ) {
+ u.callActions();
+ v.callActions();
+ window.location.reload();
+ }
+ })();
MANAGE_ACCOUNTS.listAccounts();
MANAGE_BUDDIES.listBuddies();
More information about the asterisk-gui-commits
mailing list