Skip to content

Commit 52a110e

Browse files
author
Matt Swanson
committed
fix keyboard toggling.
1 parent 0cc1272 commit 52a110e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎app/public/js/app.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ $(document).ready(function() {
4848
var $this = $(this);
4949

5050
var openStories = $("li.story.open");
51-
openStories.trigger("closeStory");
52-
51+
5352
if($this.hasClass("open")) {
5453
$this.trigger("closeStory");
5554
} else {
5655
$this.trigger("openStory");
5756
}
57+
58+
openStories.trigger("closeStory");
5859
});
5960

6061
$("#mark-all").click(function(e) {

0 commit comments

Comments
 (0)