Fix timeago on mobile devices. Fix missing space
This commit is contained in:
parent
c9cd5460ac
commit
655fbfcd79
2 changed files with 5 additions and 1 deletions
|
|
@ -126,10 +126,12 @@ $(document).ready(function(){
|
||||||
link.addClass('active');
|
link.addClass('active');
|
||||||
existingCommentsContainer.show();
|
existingCommentsContainer.show();
|
||||||
scrollToOffset(parent, commentsContainer());
|
scrollToOffset(parent, commentsContainer());
|
||||||
|
commentsContainer().find('time.timeago').timeago();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
existingCommentsContainer.show();
|
existingCommentsContainer.show();
|
||||||
|
existingCommentsContainer.find('time.timeago').timeago();
|
||||||
}
|
}
|
||||||
|
|
||||||
link.addClass('active');
|
link.addClass('active');
|
||||||
|
|
@ -141,10 +143,10 @@ $(document).ready(function(){
|
||||||
parent.append(data);
|
parent.append(data);
|
||||||
link.addClass('active');
|
link.addClass('active');
|
||||||
scrollToOffset(parent, commentsContainer());
|
scrollToOffset(parent, commentsContainer());
|
||||||
|
commentsContainer().find('time.timeago').timeago();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var scrollToOffset = function(parent, commentsContainer){
|
var scrollToOffset = function(parent, commentsContainer){
|
||||||
|
|
@ -232,6 +234,7 @@ $(document).ready(function(){
|
||||||
reactionLink.text(reactionLink.text().replace(/(\d+)/, function(match){ return parseInt(match) + 1; }));
|
reactionLink.text(reactionLink.text().replace(/(\d+)/, function(match){ return parseInt(match) + 1; }));
|
||||||
commentCount.text(commentCount.text().replace(/(\d+)/, function(match){ return parseInt(match) + 1; }));
|
commentCount.text(commentCount.text().replace(/(\d+)/, function(match){ return parseInt(match) + 1; }));
|
||||||
commentActionLink.addClass("inactive");
|
commentActionLink.addClass("inactive");
|
||||||
|
bottomBar.find('time.timeago').timeago();
|
||||||
}, 'html');
|
}, 'html');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ en:
|
||||||
months: "%d months"
|
months: "%d months"
|
||||||
year: "about a year"
|
year: "about a year"
|
||||||
years: "%d years"
|
years: "%d years"
|
||||||
|
wordSeparator: " "
|
||||||
|
|
||||||
my_activity: "My Activity"
|
my_activity: "My Activity"
|
||||||
my_stream: "Stream"
|
my_stream: "Stream"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue