metamaps--metamaps/app/views/notifications/mark_read.js.erb

7 lines
253 B
Text
Raw Normal View History

2016-11-24 15:36:48 -05:00
$('#notification-<%= @notification.id %> .notification-read-unread > a')
2016-11-16 23:50:47 -05:00
.text('(read)')
.attr('href', '<%= mark_unread_notification_path(@notification.id) %>')
$('#notification-<%= @notification.id %>')
.removeClass('unread')
.addClass('read')