pari: branch 2.0 r4207 - /branches/2.0/config/js/ringgroups.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Nov 24 15:11:56 CST 2008


Author: pari
Date: Mon Nov 24 15:11:56 2008
New Revision: 4207

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

When suggesting a new extension, check all extensions on system for duplicates.



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

Modified: branches/2.0/config/js/ringgroups.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/ringgroups.js?view=diff&rev=4207&r1=4206&r2=4207
==============================================================================
--- branches/2.0/config/js/ringgroups.js (original)
+++ branches/2.0/config/js/ringgroups.js Mon Nov 24 15:11:56 2008
@@ -168,16 +168,9 @@
 		ASTGUI.resetTheseFields([ DOM_rg_fb_select , DOM_select_strategy , DOM_text_ringTime ]);
 
 		(function(){
-			var tmp_aliasextens = [];
-			var rgs_list = parent.sessionData.pbxinfo.ringgroups.getOwnProperties();
-			rgs_list.each( function(rg){
-				var c = parent.sessionData.pbxinfo['ringgroups'][rg];
-				if ( c['extension'] ){
-					tmp_aliasextens.push( c['extension'] );
-				}
-			});
-			tmp_aliasextens = tmp_aliasextens.concat( parent.astgui_managePageGroups.getPGsList() );
-			DOM_text_rgExten.value  = tmp_aliasextens.firstAvailable( parent.sessionData.GUI_PREFERENCES.getProperty('rge_start') );
+			var tmp_allextensions = ASTGUI.cloneObject( parent.miscFunctions.getAllExtensions() );
+			var tmp_newEXT = tmp_allextensions.firstAvailable( parent.sessionData.GUI_PREFERENCES.getProperty('rge_start') );
+			DOM_text_rgExten.value  = tmp_newEXT ;
 		})();
 
 		return ;




More information about the asterisk-gui-commits mailing list