mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-29 08:09:55 -04:00
BUGFIX: don't move selection when nothing is selected
This commit is contained in:
parent
87dd681497
commit
871f2113e4
1 changed files with 2 additions and 0 deletions
|
@ -213,6 +213,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
if(index >= $articles.length){
|
||||
index = $articles.length - 1;
|
||||
}
|
||||
|
||||
direction = 0;
|
||||
}
|
||||
|
||||
var $article = $articles.eq(index + direction);
|
||||
|
|
Loading…
Add table
Reference in a new issue