Adding .timeago('updateFromDOM') function

This commit is contained in:
Michael Borohovski 2013-06-12 19:46:49 +00:00
parent d52af89018
commit 30d5b47d5b

View file

@ -134,6 +134,10 @@
update: function(time){
$(this).data('timeago', { datetime: $t.parse(time) });
refresh.apply(this);
},
updateFromDOM: function(){
$(this).data('timeago', { datetime: $t.parse( $t.isTime(this) ? $(this).attr("datetime") : $(this).attr("title") ) });
refresh.apply(this);
}
};