mirror of
https://github.com/Oreolek/oreolek.ru.git
synced 2024-04-29 15:49:24 +03:00
declare the var before use
This commit is contained in:
parent
ee53838653
commit
1b3e403ce0
|
@ -1,7 +1,7 @@
|
|||
$('.date').each(function(){
|
||||
if ($(this).text() != '')
|
||||
{
|
||||
day = moment($(this).text());
|
||||
var day = moment($(this).text());
|
||||
$(this).text(day.fromNow()+", "+day.format('LL'));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue