瀏覽代碼

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

++ scipts.js extended (missing upgrade-functions)
pull/74/head
A. Binzxxxxxx 2 月之前
父節點
當前提交
27ff9b3934
No account linked to committer's email address
共有 1 個文件被更改,包括 29 次插入0 次删除
  1. 29
    0
      files/www/lan/scripts.js

+ 29
- 0
files/www/lan/scripts.js 查看文件

@@ -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…
取消
儲存