luci-base: luci.js: add LuCI.fspath() helper
authorJo-Philipp Wich <jo@mein.io>
Sun, 12 Apr 2020 20:27:16 +0000 (22:27 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 12 Apr 2020 20:51:28 +0000 (22:51 +0200)
commitfde144c9be61d7886e81240233328a61d7088d08
treec3761e58f8624abf43bd5468b76a25bf908f3495
parente523bfd879f34ee92824e97bf57ceead3ac7bc37
luci-base: luci.js: add LuCI.fspath() helper

The LuCI.fspath() function allows constructing absolute filesystem paths
from path segments relative to the document root.

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