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:41:49 +0000 (19:41 +0100)
commit2d286c76b78ba7993330782b8dd016d74904ead9
treec4545c64a6d9e71178feba97c22be57cd7f1525b
parent3aeda2a2ea7cebfbe23bbba3677c0a8cc0025d6c
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>
(cherry picked from commit 136b965b255c3d37a21e8cf2fc835f83c2f0d3be)
modules/luci-base/htdocs/luci-static/resources/ui.js