From 73bf0bd4131d218feeabffde540a9255919d43f8 Mon Sep 17 00:00:00 2001 From: mvoelkel Date: Sun, 6 Sep 2015 22:06:38 +0200 Subject: [PATCH 1/2] Webserver javascripts updates Replaces DOM based dynamic jscript elements with XMLHttpRequests and JSON replies. Not yet on all pages. --- octoserve/var/www/beta.lua | 2 +- octoserve/var/www/doupdate.html | 117 +++++++++++++++++-------------- octoserve/var/www/index.html | 3 +- octoserve/var/www/reboot.html | 33 ++++----- octoserve/var/www/reboot.lua | 50 ++++++++++--- octoserve/var/www/systeminfo.lua | 13 ++-- octoserve/var/www/update.html | 48 ++++++------- octoserve/var/www/update.lua | 96 ++++++++++++++++--------- 8 files changed, 211 insertions(+), 151 deletions(-) diff --git a/octoserve/var/www/beta.lua b/octoserve/var/www/beta.lua index 274fc36..48f6da1 100644 --- a/octoserve/var/www/beta.lua +++ b/octoserve/var/www/beta.lua @@ -17,7 +17,7 @@ local userver = "download.digital-devices.de/download/linux" if query == "set=beta" then local file = io.open("/config/updateserver","w") if file then - file:write(userver.."/beta/".."\n") + file:write(userver.."/beta".."\n") file:close() end elseif query == "set=std" then diff --git a/octoserve/var/www/doupdate.html b/octoserve/var/www/doupdate.html index bc71532..eb75b84 100644 --- a/octoserve/var/www/doupdate.html +++ b/octoserve/var/www/doupdate.html @@ -8,12 +8,9 @@ diff --git a/octoserve/var/www/reboot.html b/octoserve/var/www/reboot.html index 2fc65e0..88f3e47 100644 --- a/octoserve/var/www/reboot.html +++ b/octoserve/var/www/reboot.html @@ -10,6 +10,18 @@