From ac90b1bc37aa3980b9431b6568366fe8913e274c Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 3 Feb 2019 01:20:13 +0100 Subject: [PATCH] luci-app-attendedsysupgrade: fixup error_box Signed-off-by: Paul Spooren --- .../root/www/luci-static/resources/attendedsysupgrade.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js b/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js index f4d3d8dc0d..b5828a50fb 100644 --- a/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js +++ b/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js @@ -5,7 +5,7 @@ function show(s) { $(s).style.display = 'block'; } function hide(s) { $(s).style.display = 'none'; } function set_server() { - hide("#error_box"); + hide("#status_box"); data.url = $("#server").value; ubus_call("uci", "set", { "config": "attendedsysupgrade", "section": "server", values: { "url": data.url } }) ubus_call("uci", "commit", { "config": "attendedsysupgrade" }) @@ -142,7 +142,7 @@ function set_status(type, message, loading) { function upgrade_check() { // Asks server for new firmware // If data.upgrade_packages is set to true search for new package versions as well - hide("#error_box"); + hide("#status_box"); hide("#server_div"); set_status("info", "Searching for upgrades", true); var request_dict = {} -- 2.30.2