metamaps--metamaps/views/js/mark_unread.js
2018-03-05 13:21:35 -05:00

7 lines
331 B
JavaScript

$('#notification-{ @notification.id } .notification-read-unread > a')
.text('mark as read')
.attr('href', '{ mark_read_notification_path(@notification.id) }')
$('#notification-{ @notification.id }')
.removeClass('read')
.addClass('unread')
Metamaps.GlobalUI.Notifications.incrementUnread(Metamaps.GlobalUI.ReactApp.render)