2016-11-01 03:18:27 +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')
|
2016-12-04 20:02:24 +00:00
|
|
|
Metamaps.GlobalUI.NotificationIcon.render(Metamaps.GlobalUI.NotificationIcon.unreadNotificationsCount - 1)
|