Merge pull request #131 from DvdGiessen/update-title-attr

Added support for updating locale titles
This commit is contained in:
Ryan McGeary 2013-10-07 08:12:25 -07:00
commit f512100060

View file

@ -132,7 +132,9 @@
} }
}, },
update: function(time){ update: function(time){
$(this).data('timeago', { datetime: $t.parse(time) }); var parsedTime = $t.parse(time);
$(this).data('timeago', { datetime: parsedTime });
if($t.settings.localeTitle) $(this).attr("title", parsedTime.toLocaleString());
refresh.apply(this); refresh.apply(this);
}, },
updateFromDOM: function(){ updateFromDOM: function(){