luci-app-lxc: Minor polishing 3416/head
authorMichal Hrušecký <Michal.Hrusecky@nic.cz>
Sun, 30 Oct 2016 21:54:42 +0000 (22:54 +0100)
committerMichal Hrušecký <Michal.Hrusecky@nic.cz>
Sun, 30 Oct 2016 21:54:42 +0000 (22:54 +0100)
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ý <Michal.Hrusecky@nic.cz>
utils/luci-app-lxc/Makefile
utils/luci-app-lxc/files/view/lxc.htm

index 210f030a112345884687148cfbdef9af8ddee257..026f714cdf3cd1c784d7c722ae576e9e6f3d62ed 100644 (file)
@@ -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 <petar.koretic@sartura.hr>
 endef
 
index bc767f3664d57952f197525ad5dac9608447b5e6..edfff8e063765fb81b61b2df71ec263b00f2eb14 100644 (file)
@@ -450,7 +450,7 @@ Author: Petar Koretic <petar.koretic@sartura.hr>
                {
                        var option = document.createElement('option');
                        option.value = data[key];
-                       option.text = data[key].replace(/[_:]/, ' ');
+                       option.text = data[key].replace(/[_:]/g, ' ');
                        select.add(option, -1);
                }
        })