From 3f6bf2fda0b79ab7f391d61b797560401f8f741f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 21 May 2014 07:30:47 -0400 Subject: [PATCH] FIX: Home key was broken due to some HTML changes --- .../discourse/components/keyboard_shortcuts_component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js index 21fe55c0ff2..98ec474141a 100644 --- a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js +++ b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js @@ -67,7 +67,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ }, _jumpTo: function(direction) { - if ($('#topic-title').length) { + if ($('.container.posts').length) { Discourse.__container__.lookup('controller:topic').send(direction); } },