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" })
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 = {}