summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-20 19:13:57 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-20 19:40:46 +0100
commit878d6622828676dbb8bf0cb26ffc242079aae306 (patch)
treedd866325baad4fc025fb464192c59ffa00f0f33b /modules/luci-compat
parent136b965b255c3d37a21e8cf2fc835f83c2f0d3be (diff)
luci-compat: upload.htm: expose root_directory and initial_directory
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-compat')
-rw-r--r--modules/luci-compat/luasrc/view/cbi/upload.htm3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/upload.htm b/modules/luci-compat/luasrc/view/cbi/upload.htm
index e61049538..9dbce9b04 100644
--- a/modules/luci-compat/luasrc/view/cbi/upload.htm
+++ b/modules/luci-compat/luasrc/view/cbi/upload.htm
@@ -7,7 +7,8 @@
show_hidden = self.show_hidden,
enable_remove = self.enable_remove,
enable_upload = self.enable_upload,
- root_directory = "/" --self.root_directory
+ root_directory = self.root_directory or "/",
+ initial_directory = self.initial_directory
}
}))%>></div>