return auto-reading to notifications shown in popup menu.

This commit is contained in:
Steven Fuchs 2012-01-27 13:53:27 -05:00
parent 9e337fc8b0
commit 24359623fe

View file

@ -72,7 +72,13 @@
self.dropdownNotifications.find('.read').each(function(index) {
Diaspora.page.header.notifications.setUpRead( $(this) );
});
self.dropdownNotifications.find('.unread').each(function(index) {
var myItem = $(this);
setTimeout(function(){
if ( self.dropdownNotifications.is(":visible") )
myItem.trigger('click');
}, 2000 );
});
self.ajaxLoader.hide();
};
};