diff options
author | Dirk Brenken <dev@brenken.org> | 2018-07-31 09:21:44 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2018-07-31 09:21:44 +0200 |
commit | b8f83946816702ba3b73c9573c266a2fdae6e615 (patch) | |
tree | 70d10a526bba70868b9ffde83d2c0f10b9117719 /applications/luci-app-adblock/luasrc/view | |
parent | b7ed444cbb2428150688b2842e95491a740b1156 (diff) |
luci-app-adblock: "final" fixes
during intense testing with different browsers (Chrome/Firefox/partly IE
in a VM) I found & fixed some more minor things:
* remove needless hook & include from overview page
* fix possible JS error in Runtime Information
* Align CSS color with "LuCI standard"
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/view')
-rw-r--r-- | applications/luci-app-adblock/luasrc/view/adblock/runtime.htm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm index 05cdde73b9..3f4d642592 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm @@ -6,7 +6,7 @@ This is free software, licensed under the Apache License, Version 2.0 <style type="text/css"> .runtime { - color: #0069d6; + color: #37c; font-weight: bold; display: inline-block; width: 100%; @@ -18,10 +18,12 @@ This is free software, licensed under the Apache License, Version 2.0 //<![CDATA[ function status_update(json) { - var view = document.getElementById("value_1"); - var btn1 = document.getElementById("btn1"); - var btn2 = document.getElementById("btn2"); - var input = json.data.adblock_status; + var view = document.getElementById("value_1"); + var btn1 = document.getElementById("btn1"); + var btn1_running = document.getElementById("btn1_running"); + var btn2 = document.getElementById("btn2"); + var btn2_running = document.getElementById("btn2_running"); + var input = json.data.adblock_status; view.innerHTML = input || "-"; if (input === "enabled") @@ -126,7 +128,7 @@ This is free software, licensed under the Apache License, Version 2.0 btn2.value = "<%:Refresh%>"; btn2.name = "do_refresh"; btn1.disabled = true; - btn2.disabled = false; + btn2.disabled = true; return; } status_update(json_info) |