luci-app-banip: fix JS errors in chromium 2272/head
authorDirk Brenken <dev@brenken.org>
Mon, 12 Nov 2018 11:14:52 +0000 (12:14 +0100)
committerDirk Brenken <dev@brenken.org>
Mon, 12 Nov 2018 11:14:52 +0000 (12:14 +0100)
* fix JS errors in chromium on ipset- & ripe-view page

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-banip/luasrc/view/banip/ipsetview.htm
applications/luci-app-banip/luasrc/view/banip/ripeview.htm

index 14932ffaef8ba15fcd1ca7e108a0ad3caa42a19f..22c1312a8fdaca6735d761b037e7d5aa7e8afb63 100644 (file)
@@ -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)
                {
index 118504fd650031f67793a8a0015546555241d8ff..5d26ce95f1b1917bf39a0908a75206c92f74cb20 100644 (file)
@@ -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)
                {