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

7 lines
363 B
Plaintext
Raw Normal View History

$('#notification-<%= @notification.id %> .notification-read-unread > a')
.text('mark as read')
.attr('href', '<%= mark_read_notification_path(@notification.id) %>')
$('#notification-<%= @notification.id %>')
.removeClass('read')
.addClass('unread')
2016-12-04 20:02:24 +00:00
Metamaps.GlobalUI.NotificationIcon.render(Metamaps.GlobalUI.NotificationIcon.unreadNotificationsCount + 1)