This commit is contained in:
psychobunny
2015-08-18 11:02:14 -04:00
parent 3b3c383d93
commit 4b0f50f57e

View File

@@ -206,9 +206,13 @@
overrideTimeago: function() {
var timeagoFn = $.fn.timeago;
$.fn.timeago = function() {
timeagoFn.apply(this, arguments).each(function() {
$(this).attr('title', (new Date($(this).attr('title'))).toString());
});
var els = timeagoFn.apply(this, arguments);
if (els) {
els.each(function() {
$(this).attr('title', (new Date($(this).attr('title'))).toString());
});
}
};
},