2016-11-24 15:36:48 -05:00
|
|
|
$('#notification-<%= @notification.id %> .notification-read-unread > a')
|
2016-11-28 12:54:33 -05:00
|
|
|
.text('mark as read')
|
2016-11-16 23:50:47 -05:00
|
|
|
.attr('href', '<%= mark_read_notification_path(@notification.id) %>')
|
2016-11-25 11:39:10 -05:00
|
|
|
$('#notification-<%= @notification.id %>')
|
|
|
|
.removeClass('read')
|
|
|
|
.addClass('unread')
|
2016-12-04 20:02:24 +00:00
|
|
|
Metamaps.GlobalUI.NotificationIcon.render(Metamaps.GlobalUI.NotificationIcon.unreadNotificationsCount + 1)
|