CC-3671: add show on week/day view doesn't get start time/end time filled in
-use str formatter for padding
This commit is contained in:
parent
517013ffc3
commit
e12bd35ee2
3 changed files with 4 additions and 9 deletions
|
@ -85,10 +85,5 @@ function openPreviewWindow(url) {
|
|||
}
|
||||
|
||||
function pad(number, length) {
|
||||
var str = '' + number;
|
||||
while (str.length < length) {
|
||||
str = '0' + str;
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
return sprintf("%'0"+length+"d", number);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue