Browse Source

Merge pull request #73 from re4jh/fix_missing_upgrade-and-restore

++ scipts.js extended (missing upgrade-functions)
pull/74/head
A. Binzxxxxxx 1 month ago
parent
commit
27ff9b3934
No account linked to committer's email address
1 changed files with 29 additions and 0 deletions
  1. 29
    0
      files/www/lan/scripts.js

+ 29
- 0
files/www/lan/scripts.js View File

@@ -2103,3 +2103,32 @@ function apply() {
});
}
}

/* imported from upgrade.js */

function restore_firmware() {
if (!confirm("Sollen alle Einstellungen zur\xFCckgesetzt werden?")) {
return;
}

send("/cgi-bin/upgrade", { func : 'restore_firmware' }, function(text) {
setText('msg', text);
});
}
function lookup_upgrade() {
setText('msg', 'Versuche Updateserver zu erreichen. Bitte warten ...');
send("/cgi-bin/upgrade", { func : 'lookup_upgrade' }, function(text) {
setText('msg', text);
});
}

function lookup_and_apply_upgrade() {
if (!confirm("Soll ein Update durchgef\xFChrt werden?")) {
return;
}

setText('msg', 'Versuche Updateserver zu erreichen. Bitte warten ...');
send("/cgi-bin/upgrade", { func : 'lookup_and_apply_upgrade' }, function(text) {
setText('msg', text);
});
}

Loading…
Cancel
Save