rbrindley: branch 2.0 r4830 - /branches/2.0/config/directory.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Jun 3 08:39:50 CDT 2009
Author: rbrindley
Date: Wed Jun 3 08:39:44 2009
New Revision: 4830
URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4830
Log:
- fixed an issue where the directory page would delete options w/o notifying
the user
Modified:
branches/2.0/config/directory.html
Modified: branches/2.0/config/directory.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/directory.html?view=diff&rev=4830&r1=4829&r2=4830
==============================================================================
--- branches/2.0/config/directory.html (original)
+++ branches/2.0/config/directory.html Wed Jun 3 08:39:44 2009
@@ -49,12 +49,16 @@
ASTGUI.highlightField( 'dirext' , 'Extension already exists');
return;
}
+ if (!NEWEXT && ($('#read_extNo:checked').val() || $('#dir_firstname:checked').val())) {
+ ASTGUI.highlightField('dirext', 'Extension must exist if options are checked');
+ return;
+ }
var dir_ops = '';
dir_ops += ( _$('read_extNo').checked ) ? 'e' : '' ;
dir_ops += ( _$('dir_firstname').checked ) ? 'f' : '' ;
ASTGUI.miscFunctions.delete_LinesLike({ context_name : ASTGUI.contexts.Directory , beginsWithArr: ['exten='] , filename: 'extensions.conf', hasThisString:'1,Directory(default', cb:function(){} });
if( NEWEXT ){
- var dir_string = NEWEXT + ',1,Directory(default|default|' + dir_ops +')' ;
+ var dir_string = NEWEXT + ',1,Directory(default,default,' + dir_ops +')' ;
var u = new listOfSynActions('extensions.conf');
u.new_action('append', ASTGUI.contexts.Directory , 'exten', dir_string );
u.callActions();
More information about the asterisk-gui-commits
mailing list