text padding

This commit is contained in:
James Campos 2011-06-05 17:30:17 -07:00
parent c4dafeb682
commit 6385d96a4a
2 changed files with 2 additions and 2 deletions

View File

@ -1695,7 +1695,7 @@
hour = g.chanOffset + Number(hour);
time.date = new Date(year, month, day, hour, min);
timeEl = $.el('time', {
textContent: time.funk(time)
textContent: ' ' + time.funk(time) + ' '
});
return $.replace(s, timeEl);
});

View File

@ -1333,7 +1333,7 @@ time =
#XXX /b/ will have seconds cut off
timeEl = $.el 'time',
textContent: time.funk time
textContent: ' ' + time.funk(time) + ' '
$.replace s, timeEl
zeroPad: (n) -> if n < 10 then '0' + n else n