Project

General

Profile

Actions

Bug #5710

closed

firewall_nat_edit.php target custom port field not grayed out where should be

Added by Chris Buechler over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
Web Interface
Target version:
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

Also available in: Atom PDF