From af25cf4879163b38e9fd71bd3a55e77c31d3d903 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Tue, 31 Jul 2018 09:36:27 +0200 Subject: luci-app-travelmate: "final" fixes during intense testing with different browsers (Chrome/Firefox/partly IE in a VM) I found & fixed some more minor things: * re-add accidently removed "apply_on_parse" attribute in overview cbi * fixed a corner case where the "Restart" button not works correctly * Removed leftovers from last commit Signed-off-by: Dirk Brenken --- .../luci-app-travelmate/luasrc/view/travelmate/runtime.htm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'applications/luci-app-travelmate/luasrc/view/travelmate') diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm index aba4a32018..272612600c 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm @@ -7,7 +7,6 @@ This is free software, licensed under the Apache License, Version 2.0 .runtime { color: #37c; - //#0069d6; font-weight: bold; display: inline-block; width: 100%; @@ -22,7 +21,7 @@ This is free software, licensed under the Apache License, Version 2.0 var btn1 = document.getElementById("btn1"); var view = document.getElementById("value_1"); var input = json.data.travelmate_status; - + btn1.value = "<%:Restart%>"; btn1.name = "do_restart"; view.innerHTML = input || "-"; @@ -41,8 +40,6 @@ This is free software, licensed under the Apache License, Version 2.0 view = document.getElementById("value_6"); input = json.data.last_rundate; view.innerHTML = input || "-"; - btn1.disabled = false; - running(btn1_running, 0); } function btn_action(action) @@ -60,6 +57,8 @@ This is free software, licensed under the Apache License, Version 2.0 { return; } + btn1.disabled = false; + running(btn1_running, 0); }); } @@ -139,7 +138,7 @@ This is free software, licensed under the Apache License, Version 2.0
- +
-- cgit v1.2.3