BUGFIX: don't move selection when nothing is selected

This commit is contained in:
Sam 2014-07-30 11:22:41 +10:00
parent 87dd681497
commit 871f2113e4
1 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
if(index >= $articles.length){ if(index >= $articles.length){
index = $articles.length - 1; index = $articles.length - 1;
} }
direction = 0;
} }
var $article = $articles.eq(index + direction); var $article = $articles.eq(index + direction);