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:
Martin Konecny 2012-04-25 16:39:58 -04:00
parent 517013ffc3
commit e12bd35ee2
3 changed files with 4 additions and 9 deletions

View file

@ -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);
}