pari: branch 2.0 r4196 - /branches/2.0/config/js/users.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Nov 24 10:26:47 CST 2008
Author: pari
Date: Mon Nov 24 10:26:46 2008
New Revision: 4196
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4196
Log:
>linvinus: ok, now i can't create user with voicemail extension
> but, it still set by default in create dialog, for every new user above 6049,
> so i still must change it by hand every time when i create new user.
> sorry for my annoying
(closes issue #13924)
Modified:
branches/2.0/config/js/users.js
Modified: branches/2.0/config/js/users.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/users.js?view=diff&rev=4196&r1=4195&r2=4196
==============================================================================
--- branches/2.0/config/js/users.js (original)
+++ branches/2.0/config/js/users.js Mon Nov 24 10:26:46 2008
@@ -234,7 +234,10 @@
ASTGUI.updateFieldToValue( 'edit_hasIax', 'yes' );
ASTGUI.updateFieldToValue( 'edit_flash', '750' );
ASTGUI.updateFieldToValue( 'edit_rxflash', '1250' );
- var ul = parent.astgui_manageusers.listOfUsers();
+ var ul = ASTGUI.cloneObject( parent.astgui_manageusers.listOfUsers() );
+ if( parent.sessionData.pbxinfo['localextensions'].hasOwnProperty('VoiceMailMain') ){
+ ul.push( ASTGUI.parseContextLine.getExten( parent.sessionData.pbxinfo['localextensions']['VoiceMailMain'] ) );
+ }
var tmp_newEXT = ul.firstAvailable( parent.sessionData.GUI_PREFERENCES.getProperty('ue_start') );
ASTGUI.updateFieldToValue( 'new_ext', tmp_newEXT );
$('#edit_callerid_span').html(tmp_newEXT);
More information about the asterisk-gui-commits
mailing list