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