diff options
Diffstat (limited to 'applications/luci-app-banip/luasrc/view/banip/ripeview.htm')
-rw-r--r-- | applications/luci-app-banip/luasrc/view/banip/ripeview.htm | 12 |
1 files changed, 7 insertions, 5 deletions
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) { |