pari: branch 2.0 r3674 - /branches/2.0/config/followme.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Aug 18 12:10:54 CDT 2008


Author: pari
Date: Mon Aug 18 12:10:54 2008
New Revision: 3674

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

 Load 'Music on hold' and 'Dialplan' lists in the select boxes



Modified:
    branches/2.0/config/followme.html

Modified: branches/2.0/config/followme.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/followme.html?view=diff&rev=3674&r1=3673&r2=3674
==============================================================================
--- branches/2.0/config/followme.html (original)
+++ branches/2.0/config/followme.html Mon Aug 18 12:10:54 2008
@@ -158,6 +158,22 @@
 var localajaxinit = function(){
 	top.document.title = 'Follow Me' ;
 	load_users_table();
+
+	(function(){
+		var mcls = config2json({filename: 'musiconhold.conf', usf: 1});
+		for (var this_class in mcls ){
+			if(mcls.hasOwnProperty(this_class)){
+				ASTGUI.selectbox.append('FMU_moh', this_class, this_class );
+			}
+		}
+		_$('FMU_moh').selectedIndex = -1;
+
+		var c = parent.astgui_manageCallPlans.listPlans() ;
+		var tmp_pfx = ASTGUI.contexts.CallingPlanPrefix ;
+		for( var c_t = 0 ; c_t < c.length ; c_t++ ){
+			ASTGUI.selectbox.append( 'FMU_context' , c[c_t].withOut(tmp_pfx) , c[c_t] );
+		}
+	})();
 
 	$('#sqDestinations').click(function(event){
 




More information about the asterisk-gui-commits mailing list