luci-base: cbi.js: handle undefined arguments in formatting
authorJo-Philipp Wich <jo@mein.io>
Thu, 4 Aug 2016 09:45:04 +0000 (11:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 4 Aug 2016 09:45:30 +0000 (11:45 +0200)
commit6a11f71758e151d85eaf1bb611808f2420717ef7
tree08a72cd7b072220f3bd55ab0abe801968f09a9e8
parentbd4534496a9e3fc1f1c33b7e8aafb7c41f2afad2
luci-base: cbi.js: handle undefined arguments in formatting

Fix the JavaScript String.format() to not trigger an exception if the argument
for an escaped format like %h or %q is undefined.

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