From 4a083f6d2334bf2f35e8299fc215d61165c6a39a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 9 Jul 2018 17:04:10 +0200 Subject: [PATCH] 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 --- modules/luci-base/luasrc/view/cbi/header.htm | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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") - } - })) - %>> -- 2.25.1