v1.18.x
psychobunny 10 years ago
parent 3b3c383d93
commit 4b0f50f57e

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

Loading…
Cancel
Save