summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-11-28 13:59:30 +0100
committerGitHub <noreply@github.com>2018-11-28 13:59:30 +0100
commit98cde82e4d585e432efcb468a3e4cdc52b685a25 (patch)
treed25aae16991caf9e15124f33cde16890f3614be8 /applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm
parent7669791300245c42d5a3088d1c4500662f1a684f (diff)
parent8db75255f7def8af500ecc6c711c66b8b17c78de (diff)
Merge pull request #2342 from dibdot/fw
luci-app-firewall: remove hinting
Diffstat (limited to 'applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm')
-rw-r--r--applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm17
1 files changed, 1 insertions, 16 deletions
diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm
index c02fc20f9..e0092a7a5 100644
--- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm
+++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm
@@ -76,25 +76,10 @@
function() {
var n = document.getElementById('_newopen.name');
var p = document.getElementById('_newopen.proto');
- var hints = {
- /* port name 0=both, 1=tcp, 2=udp, 3=other */
- 22: [ 'SSH', 1 ],
- 53: [ 'DNS', 0 ],
- 80: [ 'HTTP', 1 ],
- 443: [ 'HTTPS', 1 ],
- };
if (!this.className.match(/invalid/))
{
- var hint = hints[this.value || 0];
- if (hint)
- {
- p.selectedIndex = hint[1];
-
- if (!n.value)
- n.value = hint[0];
- }
- else if (!n.value && this.value)
+ if (!n.value && this.value)
{
n.value = 'Open' + this.value;
}