Skip to content

Commit

Permalink
bugfix: uke/sidusis: allow to select any uplink speed for wireless ac…
Browse files Browse the repository at this point in the history
…cesses
  • Loading branch information
chilek committed Feb 13, 2023
1 parent 2e07111 commit 6ea6cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/net/netranges.html
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ <h1>{$layout.pagetitle}</h1>
}).closest('label').toggle(linktype !== '');
$('[name="' + prefix + '[downlink]"],[name="' + prefix + '[uplink]"]').prop('required', false).closest('label').hide();
if (prefix == 'range') {
$('[name="range[downlink]"],[name="range[uplink]"]').each(function() {
$('[name="range[downlink]"]').each(function() {
$(this).find('option').each(function() {
var val = $(this).val();
$(this).toggle(linktype !== '{$smarty.const.LINKTYPE_WIRELESS}' || val === '' || parseInt(linktechnology) != 150 || parseInt(val) >= 30);
Expand All @@ -790,7 +790,7 @@ <h1>{$layout.pagetitle}</h1>
}).closest('label').toggle(linktechnology !== '');
if (prefix == 'range') {
var linktype = $('[name="range[linktype]"]').val();
$('[name="range[downlink]"],[name="range[uplink]"]').each(function() {
$('[name="range[downlink]"]').each(function() {
$(this).find('option').each(function() {
var val = $(this).val();
$(this).toggle(linktype !== '{$smarty.const.LINKTYPE_WIRELESS}' || val === '' || parseInt(linktechnology) != 150 || parseInt(val) >= 30);
Expand Down

0 comments on commit 6ea6cad

Please sign in to comment.