summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-11-12 12:16:31 +0100
committerGitHub <noreply@github.com>2018-11-12 12:16:31 +0100
commitac47c730c79259f2e3df1d0d8cd3f797db241e2c (patch)
tree01ca5d5c2fa8dd726c782e830e1f68158202be2e
parentdc2877d39f49d878f99143cb5fe1cd86502b62d0 (diff)
parent9f2c2e72189c8ed467a5268f3cc5b6be084dd8d7 (diff)
Merge pull request #2272 from dibdot/banip
luci-app-banip: fix JS errors in chromium
-rw-r--r--applications/luci-app-banip/luasrc/view/banip/ipsetview.htm7
-rw-r--r--applications/luci-app-banip/luasrc/view/banip/ripeview.htm12
2 files changed, 11 insertions, 8 deletions
diff --git a/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm b/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm
index 14932ffaef..22c1312a8f 100644
--- a/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm
+++ b/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm
@@ -15,9 +15,10 @@ This is free software, licensed under the Apache License, Version 2.0
//<![CDATA[
function ipset_view()
{
- var ipset = div_ipsets.querySelector("#s_ipsets").value;
- var filter = document.getElementById("checkbox_filter").checked;
- var view = document.getElementById("view_id");
+ var div_ipsets = document.getElementById("div_ipsets");
+ var ipset = div_ipsets.querySelector("#s_ipsets").value;
+ var filter = document.getElementById("checkbox_filter").checked;
+ var view = document.getElementById("view_id");
if (!ipset)
{
diff --git a/applications/luci-app-banip/luasrc/view/banip/ripeview.htm b/applications/luci-app-banip/luasrc/view/banip/ripeview.htm
index 118504fd65..5d26ce95f1 100644
--- a/applications/luci-app-banip/luasrc/view/banip/ripeview.htm
+++ b/applications/luci-app-banip/luasrc/view/banip/ripeview.htm
@@ -10,8 +10,9 @@ This is free software, licensed under the Apache License, Version 2.0
//<![CDATA[
function ripe_desc()
{
- var query = div_ripe.querySelector("#s_ripe").value;
- var output = document.getElementById("ripe_desc");
+ var div_ripe = document.getElementById("div_ripe");
+ var query = div_ripe.querySelector("#s_ripe").value;
+ var output = document.getElementById("ripe_desc");
switch (query) {
case "geoloc":
@@ -45,9 +46,10 @@ This is free software, licensed under the Apache License, Version 2.0
function ripe_view()
{
- var query = div_ripe.querySelector("#s_ripe").value;
- var input = document.getElementById("ripe_input");
- var view = document.getElementById("view_id");
+ var div_ripe = document.getElementById("div_ripe");
+ var query = div_ripe.querySelector("#s_ripe").value;
+ var input = document.getElementById("ripe_input");
+ var view = document.getElementById("view_id");
if (!input.value)
{