diff options
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 777c832..21e719a 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -1925,7 +1925,8 @@ events.push(function() { if ($('#proto').find(":selected").index() <= 2) { hideClass('dstprtr', false); hideInput('btnsrcadv', false); - if (($('#srcbeginport').val() == "any") && ($('#srcendport').val() == "any")) { + if ((($('#srcbeginport').val() == "any") || ($('#srcbeginport').val() == "")) && + (($('#srcendport').val() == "any") || ($('#srcendport').val() == ""))) { srcportsvisible = false; } else { srcportsvisible = true; |