daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Mark all messages as read
  3.  *
  4.  */
  5. function markAllRead () {
  6.     $('div.comment.unread').each(function () {
  7.         $(this).trigger('click');
  8.     });    
  9. }
  10.  
  11.  
  12. /**
  13.  * Mark all messages as unread
  14.  *
  15.  */
  16. function markAllUnread () {
  17.     // Mark all as read
  18.     $('div.comment.read').each(function () {
  19.         $(this).trigger('click');
  20.     });    
  21. }
RAW Paste Data
Top