discourse/app/assets/javascripts/discourse/initializers/relative-ages.js.es6
2014-05-16 14:04:34 -04:00

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