Actions
Bug #5710
closedfirewall_nat_edit.php target custom port field not grayed out where should be
Start date:
12/28/2015
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3
Affected Architecture:
Description
On firewall_nat_edit.php, the custom port box for "Redirect target port" doesn't get grayed out when an option is chosen from the drop down. It should behave the same as "Source port range" and "Destination port range" on that page - if something is picked from the drop down (say, HTTP), then the Custom box gets grayed out.
This snippet looks like it's trying to do that.
if (($('#localbeginport').find(":selected").index() == 0) && portsenabled) { disableInput('localbeginport_cust', false); } else { $('#localbeginport_cust').val(''); disableInput('localbeginport_cust', true); }
but it doesn't actually disable/enable the field.
Actions