projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c2fe7a
)
[IMP] simplify code of padding function in date formatting.
author
sma (Tiny)
<sma@tinyerp.com>
Fri, 12 Aug 2011 11:44:02 +0000
(17:14 +0530)
committer
sma (Tiny)
<sma@tinyerp.com>
Fri, 12 Aug 2011 11:44:02 +0000
(17:14 +0530)
bzr revid: sma@tinyerp.com-
20110812114402
-u9u8vxxp1fnonq3m
addons/base/static/src/js/formats.js
patch
|
blob
|
history
diff --git
a/addons/base/static/src/js/formats.js
b/addons/base/static/src/js/formats.js
index
fb1ada5
..
eb5ff6d
100644
(file)
--- a/
addons/base/static/src/js/formats.js
+++ b/
addons/base/static/src/js/formats.js
@@
-83,7
+83,7
@@
openerp.base.parse_time = function(str) {
*/
var zpad = function(str, size) {
str = "" + str;
- return new Array(size - str.length).join('0') + str;
+ return new Array(_.range(size - str.length)).join('0') + str;
};
/**