git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
21bf16c
)
luci-base: cbi.js: properly round down numbers for %u and %d patterns
author
Jo-Philipp Wich
<redacted>
Wed, 17 Feb 2016 15:33:34 +0000
(16:33 +0100)
committer
Jo-Philipp Wich
<redacted>
Wed, 17 Feb 2016 15:33:34 +0000
(16:33 +0100)
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-base/htdocs/luci-static/resources/cbi.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index c084709f92a451664201744d5dc1ed01d8b0a93e..26fd92471ff5d9faaf40883b667ca775015a4555 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/cbi.js
@@
-1360,11
+1360,11
@@
String.prototype.format = function()
break;
case 'd':
- subst = (+param || 0);
+ subst =
~~
(+param || 0);
break;
case 'u':
- subst = Math.abs(+param || 0);
+ subst =
~~
Math.abs(+param || 0);
break;
case 'f':
git clone https://git.99rst.org/PROJECT