From: Jo-Philipp Wich Date: Mon, 9 Jul 2018 15:04:10 +0000 (+0200) Subject: luci-base: fix placement of CBI strings X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a083f6d2334bf2f35e8299fc215d61165c6a39a;p=oweals%2Fluci.git luci-base: fix placement of CBI strings Commit c0de036b3 ("treewide: always include cbi.js") improperly removed the cbi.js script include from header.htm, leaving behind the string dictionary. Move the JSON dictionary to the parent
element and delete the leftover element. Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/view/cbi/header.htm b/modules/luci-base/luasrc/view/cbi/header.htm index 2cea0b911..821fa3efa 100644 --- a/modules/luci-base/luasrc/view/cbi/header.htm +++ b/modules/luci-base/luasrc/view/cbi/header.htm @@ -1,17 +1,17 @@ <%+header%> - +>
- attr("data-strings", luci.util.serialize_json({ - label = { - choose = translate('-- Please choose --'), - custom = translate('-- custom --'), - }, - path = { - resource = resource, - browser = url("admin/filebrowser") - } - })) - %>>