luci-base: cbi.js: fix number rounding in string.format()
authorJo-Philipp Wich <jo@mein.io>
Thu, 6 Jun 2019 19:06:25 +0000 (21:06 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:26 +0000 (15:36 +0200)
commit0bcb9f9f1d5f30a0a06584ddf4956d754c705c9d
tree753cb34bc60c6461286c609b7e263fc847dfe2e1
parent0539e7f6b9b51b5121a76082d82d3f442695f400
luci-base: cbi.js: fix number rounding in string.format()

Ensure that patterns like %d, %x, %o or %b properly truncate their
operands to whole integers.

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