Shift+U switches between read and unread. Thanks to @MLACitation: https://twitter.com/mlacitation/status/155371014560288768

This commit is contained in:
Samuel Clay 2012-01-09 20:06:38 -08:00
parent 4400c797e0
commit 7ef994ce61

View file

@ -6795,8 +6795,11 @@
}); });
$document.bind('keydown', 'shift+u', function(e) { $document.bind('keydown', 'shift+u', function(e) {
e.preventDefault(); e.preventDefault();
if (self.active_story) { var story_id = self.active_story.id;
var story_id = self.active_story.id; console.log(["self.active_story", self.active_story]);
if (self.active_story && !self.active_story.read_status) {
self.mark_story_as_read(story_id);
} else if (self.active_story && self.active_story.read_status) {
self.mark_story_as_unread(story_id); self.mark_story_as_unread(story_id);
} }
}); });