rbrindley: branch 2.0 r4781 - /branches/2.0/config/users.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu May 7 09:32:48 CDT 2009
Author: rbrindley
Date: Thu May 7 09:32:45 2009
New Revision: 4781
URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4781
Log:
- flash and rxflash are now properly disabled when there is
no analog port for adding/editing a user.
Modified:
branches/2.0/config/users.html
Modified: branches/2.0/config/users.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/users.html?view=diff&rev=4781&r1=4780&r2=4781
==============================================================================
--- branches/2.0/config/users.html (original)
+++ branches/2.0/config/users.html Thu May 7 09:32:45 2009
@@ -178,9 +178,9 @@
<img src="images/tooltip_info.gif" tip="en,users,5" class='tooltipinfo'>
- flash <img src="images/tooltip_info.gif" tip="en,users,30" class='tooltipinfo'>:
+ <label for="edit_flash">flash</label> <img src="images/tooltip_info.gif" tip="en,users,30" class='tooltipinfo'>:
<input id='edit_flash' size=4>
- rxflash <img src="images/tooltip_info.gif" tip="en,users,31" class='tooltipinfo'>:
+ <label for="edit_rxflash">rxflash</label> <img src="images/tooltip_info.gif" tip="en,users,31" class='tooltipinfo'>:
<input id='edit_rxflash' size=4>
</TD>
</TR>
@@ -549,16 +549,17 @@
$('#edit_fxs').change(function() {
/* lets disable all the inputs that are analog only if
* there is no analog stations */
+ var changes = ['3wayCalling', 'callWaiting', 'flash', 'rxflash'];
if ($('#edit_fxs option:selected').text() === 'None') {
- $('#edit_3wayCalling').attr('disabled', 'disabled');
- $('label[for=edit_3wayCalling]').css('color', '#555555');
- $('#edit_callWaiting').attr('disabled', 'disabled');
- $('label[for=edit_callWaiting]').css('color', '#555555');
+ for (var i=0; i<changes.length; i++) {
+ $('#edit_'+changes[i]).attr('disabled', 'disabled');
+ $('label[for=edit_'+changes[i]+']').css('color', '#555555');
+ }
} else {
- $('#edit_3wayCalling').removeAttr('disabled');
- $('label[for=edit_3wayCalling]').css('color', 'inherit');
- $('#edit_callWaiting').removeAttr('disabled');
- $('label[for=edit_callWaiting]').css('color', 'inherit');
+ for (var i=0; i<changes.length; i++) {
+ $('#edit_'+changes[i]).removeAttr('disabled');
+ $('label[for=edit_'+changes[i]+']').css('color', 'inherit');
+ }
}
}).change();
});
More information about the asterisk-gui-commits
mailing list