luci-base: ui.js: UIFileUpload fixes
authorJo-Philipp Wich <jo@mein.io>
Mon, 20 Jan 2020 18:38:17 +0000 (19:38 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 20 Jan 2020 18:40:46 +0000 (19:40 +0100)
commit136b965b255c3d37a21e8cf2fc835f83c2f0d3be
tree42fe1cf90caed60b26afeb45d8fa2213f7e50211
parent9fd7e9fc23647fe7adfe84d1bc3b406ab52186e7
luci-base: ui.js: UIFileUpload fixes

 - Introduce a new option `initial_directory` which describes the initial
   directory to display when nothing is selected, default to the root
   directory

 - Prevent stray legacy cbi reloads when deselecting files

 - Fix within-root-directory-check for initial rendering

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js