mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 14:33:43 +08:00
12 lines
249 B
JavaScript
12 lines
249 B
JavaScript
/**
|
|
Updates the relative ages of dates on the screen.
|
|
**/
|
|
export default {
|
|
name: "relative-ages",
|
|
initialize: function() {
|
|
setInterval(function(){
|
|
Discourse.Formatter.updateRelativeAge($('.relative-date'));
|
|
}, 60 * 1000);
|
|
}
|
|
};
|