rbrindley: branch 2.0 r5014 - /branches/2.0/config/js/preferences.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu May 20 09:38:46 CDT 2010


Author: rbrindley
Date: Thu May 20 09:38:44 2010
New Revision: 5014

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

- ASTGUI-175 After selecting an operator, there's no way to unselect it
- added an option for "none" in the operator selectbox


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

Modified: branches/2.0/config/js/preferences.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/preferences.js?view=diff&rev=5014&r1=5013&r2=5014
==============================================================================
--- branches/2.0/config/js/preferences.js (original)
+++ branches/2.0/config/js/preferences.js Thu May 20 09:38:44 2010
@@ -75,6 +75,7 @@
 
 	var cusers = parent.pbx.users.list();
 	var op_tmp ;
+	ASTGUI.selectbox.append( DOM_op_ext, '<none>', '');
 	cusers.each(function(user){
 		op_tmp = 'Goto(default,' + user + ',1)';
 		ASTGUI.selectbox.append( DOM_op_ext , 'User ' + user , op_tmp);
@@ -178,7 +179,9 @@
 		u.new_action('update', 'globals', 'RINGTIME', ASTGUI.getFieldValue('op_ringTimeOut_Voicemail') );
 
 		u.new_action('delete', 'default', 'exten','' ,'o,1,' + OPEXTENSION );
-		u.new_action('append', 'default', 'exten', 'o,1,' + ASTGUI.getFieldValue(DOM_op_ext) );
+		if (ASTGUI.getFieldValue(DOM_op_ext) != '') {
+			u.new_action('append', 'default', 'exten', 'o,1,' + ASTGUI.getFieldValue(DOM_op_ext) );
+		}
 	u.callActions();
 
 	if( (parent.sessionData.PLATFORM.isAST_1_6 || parent.sessionData.PLATFORM.isAA50 || parent.sessionData.PLATFORM.isABE) && !parent.sessionData.PLATFORM.isAA50_OEM ){




More information about the asterisk-gui-commits mailing list