mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #3448
This commit is contained in:
@@ -206,9 +206,13 @@
|
|||||||
overrideTimeago: function() {
|
overrideTimeago: function() {
|
||||||
var timeagoFn = $.fn.timeago;
|
var timeagoFn = $.fn.timeago;
|
||||||
$.fn.timeago = function() {
|
$.fn.timeago = function() {
|
||||||
timeagoFn.apply(this, arguments).each(function() {
|
var els = timeagoFn.apply(this, arguments);
|
||||||
$(this).attr('title', (new Date($(this).attr('title'))).toString());
|
|
||||||
});
|
if (els) {
|
||||||
|
els.each(function() {
|
||||||
|
$(this).attr('title', (new Date($(this).attr('title'))).toString());
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user