From 2b43ebe92fc73ce4c208d42e6ee958988e1b18bc Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sun, 3 Jun 2018 22:30:59 +0200 Subject: luci-app-lxc: made container creation more reliable * wait/lock "create" button until the real end of container creation, this includes download time plus tar/gz processing time * cosmetics Signed-off-by: Dirk Brenken --- applications/luci-app-lxc/luasrc/view/lxc.htm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'applications/luci-app-lxc/luasrc/view/lxc.htm') diff --git a/applications/luci-app-lxc/luasrc/view/lxc.htm b/applications/luci-app-lxc/luasrc/view/lxc.htm index e703d6c882..b45e27f51f 100644 --- a/applications/luci-app-lxc/luasrc/view/lxc.htm +++ b/applications/luci-app-lxc/luasrc/view/lxc.htm @@ -15,8 +15,8 @@ Author: Petar Koretic -%> <%- -local fs = require "nixio" -local target = fs.uname().machine +local nx = require "nixio" +local target = nx.uname().machine -%>
@@ -159,7 +159,7 @@ local target = fs.uname().machine var div3 = document.createElement("div"); div3.className = "td"; div3.style.width = "50%"; - div3.innerHTML = actions + div3.innerHTML = actions; document.getElementById("t_lxc_list").appendChild(div0); div0.appendChild(div1); @@ -213,8 +213,8 @@ local target = fs.uname().machine } else if (action == "destroy") { - var div = self.parentNode.parentNode - var img = div.querySelector('img') + var div = self.parentNode.parentNode; + var img = div.querySelector('img'); if (img.getAttribute('src') != window.img["red"]) { -- cgit v1.2.3