From 764ac1a0787a454a5fbdf5506065f94d4a890d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Hru=C5=A1eck=C3=BD?= Date: Sun, 30 Oct 2016 22:54:42 +0100 Subject: [PATCH] luci-app-lxc: Minor polishing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add more dependencies needed by download template and replace all, not just first occurence of : or _ in template name with space in webui. Signed-off-by: Michal Hrušecký --- utils/luci-app-lxc/Makefile | 4 ++-- utils/luci-app-lxc/files/view/lxc.htm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/luci-app-lxc/Makefile b/utils/luci-app-lxc/Makefile index 210f030a1..026f714cd 100644 --- a/utils/luci-app-lxc/Makefile +++ b/utils/luci-app-lxc/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-lxc -PKG_RELEASE:=20160616 +PKG_RELEASE:=20161030 PKG_LICENSE:=Apache-2.0 @@ -21,7 +21,7 @@ define Package/luci-app-lxc CATEGORY:=LuCI SUBMENU:=3. Applications TITLE:=LXC management Web UI - DEPENDS:=+luci-mod-admin-full +lxc +lxc-create +liblxc +rpcd-mod-lxc + DEPENDS:=+luci-mod-admin-full +lxc +lxc-create +liblxc +rpcd-mod-lxc +getopt +xz MAINTAINER:=Petar Koretic endef diff --git a/utils/luci-app-lxc/files/view/lxc.htm b/utils/luci-app-lxc/files/view/lxc.htm index bc767f366..edfff8e06 100644 --- a/utils/luci-app-lxc/files/view/lxc.htm +++ b/utils/luci-app-lxc/files/view/lxc.htm @@ -450,7 +450,7 @@ Author: Petar Koretic { var option = document.createElement('option'); option.value = data[key]; - option.text = data[key].replace(/[_:]/, ' '); + option.text = data[key].replace(/[_:]/g, ' '); select.add(option, -1); } })