Fixed timeago errors Added cucumber stuff to test timeago at inbox Show localized date/time in tooltip Remove title attributes
22 lines
793 B
Text
22 lines
793 B
Text
$('#conversation_show').html("<%= escape_javascript(render('conversations/show', :conversation => @conversation)) %>");
|
|
|
|
$(".stream_element", "#conversation_inbox").removeClass('selected');
|
|
$(".stream_element[data-guid='<%= @conversation.id %>']", "#conversation_inbox").addClass('selected');
|
|
$(".stream_element[data-guid='<%= @conversation.id %>']", "#conversation_inbox").find(".unread_message_count").remove()
|
|
|
|
$('time.timeago').each(function(i,e) {
|
|
var jqe = $(e);
|
|
jqe.attr('data-original-title', new Date(jqe.attr('datetime')).toLocaleString());
|
|
});
|
|
|
|
if ($('#first_unread') > 0) {
|
|
$("html").scrollTop($('#first_unread').offset().top-45);
|
|
}
|
|
|
|
$(".timeago").tooltip();
|
|
$("time.timeago").timeago();
|
|
|
|
$('time.timeago').each(function(i,e) {
|
|
var jqe = $(e);
|
|
jqe.attr('title', '');
|
|
});
|