Dramatically sped up Mark All as Read by deferring to the new count progress bar.

This commit is contained in:
Samuel Clay 2010-08-18 08:05:59 -04:00
parent 53c9df0fef
commit 9174df9503

View file

@ -118,8 +118,10 @@ NEWSBLUR.ReaderMarkRead.prototype = {
$save.attr('value', 'Marking as read...').addClass('NB-disabled').attr('disabled', true);
if (NEWSBLUR.Globals.is_authenticated) {
this.model.save_mark_read(days, function() {
NEWSBLUR.reader.start_count_unreads_after_import();
$.modal.close();
NEWSBLUR.reader.force_feed_refresh(function() {
$.modal.close();
NEWSBLUR.reader.finish_count_unreads_after_import();
});
});
} else {