From 04c1decd190bdefcab9d0f2a79acd3c641b05db5 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 23 Sep 2019 18:48:37 +0200 Subject: [PATCH] firewall, rules. make sure "tcp flags" input matches description. suggestion for https://github.com/opnsense/core/issues/3714 --- src/www/firewall_rules_edit.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/www/firewall_rules_edit.php b/src/www/firewall_rules_edit.php index 62510c4d9..0a3a4239f 100644 --- a/src/www/firewall_rules_edit.php +++ b/src/www/firewall_rules_edit.php @@ -623,6 +623,12 @@ include("head.inc"); $("#"+field).selectpicker('refresh'); $("#"+field).change(); }); + if ($("#proto").val() == 'tcp') { + $(".input_tcpflags_any,.input_flags").prop('disabled', false); + } else { + $(".input_tcpflags_any,.input_flags").prop('disabled', true); + } + }); // IPv4/IPv6 select