luci-app-attendedsysupgrade: fixup error_box 2504/head
authorPaul Spooren <mail@aparcar.org>
Sun, 3 Feb 2019 00:20:13 +0000 (01:20 +0100)
committerPaul Spooren <mail@aparcar.org>
Sun, 3 Feb 2019 00:20:13 +0000 (01:20 +0100)
Signed-off-by: Paul Spooren <mail@aparcar.org>
applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js

index f4d3d8dc0d5e81324b09db080703644b18f931a6..b5828a50fba43d2cdfb210df14b51a6efe9e38a0 100644 (file)
@@ -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 = {}