metamaps--metamaps/views/js/mark_read.js

8 lines
335 B
JavaScript
Raw Normal View History

2018-03-03 21:25:42 -05:00
$('#notification-{ @notification.id } .notification-read-unread > a')
2017-09-25 15:21:04 -04:00
.text('mark as unread')
2018-03-03 21:25:42 -05:00
.attr('href', '{ mark_unread_notification_path(@notification.id) }')
$('#notification-{ @notification.id }')
2017-09-25 15:21:04 -04:00
.removeClass('unread')
.addClass('read')
Metamaps.GlobalUI.Notifications.decrementUnread(Metamaps.GlobalUI.ReactApp.render)