luci-mod-admin-full: fix translation interpolation in JS confirm() calls
authorJo-Philipp Wich <jo@mein.io>
Fri, 8 Jun 2018 13:48:03 +0000 (15:48 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 8 Jun 2018 13:48:26 +0000 (15:48 +0200)
commit588c8618b6860cf88bfcf2262b104a86a5764f6e
treea91452e3486722d507db3d66281be30ca66db9fe
parent0e0ee2fed51f7108ee088e121ecbba479a5e88cc
luci-mod-admin-full: fix translation interpolation in JS confirm() calls

Use luci.http.write_json() in conjunction with translate() to write out
unescaped translation strings in a manner suitable for interpolation inside
JavaScript.

Fixes #1870
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm
modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm