Merge pull request #2898 from kellec/remove_focus_link_href

Remove href attribute from tab link to prevent duplicate event on enter.
This commit is contained in:
Robin Ward 2014-11-07 11:01:06 -05:00
commit d6ff1630a8
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
if ($article.is('.topic-post')) { if ($article.is('.topic-post')) {
var tabLoc = $article.find('a.tabLoc'); var tabLoc = $article.find('a.tabLoc');
if (tabLoc.length === 0) { if (tabLoc.length === 0) {
tabLoc = $('<a href="#" class="tabLoc"></a>'); tabLoc = $('<a class="tabLoc"></a>');
$article.prepend(tabLoc); $article.prepend(tabLoc);
} }
tabLoc.focus(); tabLoc.focus();