metamaps--metamaps/app/views/notifications/mark_read.js.erb
2016-12-11 17:48:52 -05:00

7 lines
261 B
Plaintext

$('#notification-<%= @notification.id %> .notification-read-unread > a')
.text('mark as unread')
.attr('href', '<%= mark_unread_notification_path(@notification.id) %>')
$('#notification-<%= @notification.id %>')
.removeClass('unread')
.addClass('read')