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>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commit3c6dd6deec672cbc051f5b14845d13e92afdffcd
treef408c9aebd550794b9821004edbb04b762904679
parent2c7645b8e961e65253e4a3b60533b99e5ece6605
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>
(cherry picked from commit fde144c9be61d7886e81240233328a61d7088d08)
modules/luci-base/htdocs/luci-static/resources/luci.js
modules/luci-base/luasrc/view/header.htm