1
0
Fork 0
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:
Alexander Yakovlev 2018-03-22 23:27:26 +07:00
parent ee53838653
commit 1b3e403ce0

View file

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