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

8 lines
344 B
Plaintext
Raw Normal View History

2017-09-25 19:21:04 +00:00
$('#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)