metamaps--metamaps/views/notifications/mark_read.js.erb
2018-03-03 21:25:54 -05:00

7 lines
335 B
Text

$('#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')
Metamaps.GlobalUI.Notifications.decrementUnread(Metamaps.GlobalUI.ReactApp.render)