Commit 9b4f3061 by Brian Jacobel

Fix an issue where focus could become trapped

parent df35415e
......@@ -258,7 +258,7 @@
}
});
this.renderThreads();
this.showBrowseMenu();
this.showBrowseMenu(true);
return this;
};
......@@ -429,11 +429,13 @@
return this.$('.forum-nav-browse-menu-wrapper').is(':visible');
};
DiscussionThreadListView.prototype.showBrowseMenu = function() {
DiscussionThreadListView.prototype.showBrowseMenu = function(initialLoad) {
if (!this.isBrowseMenuVisible()) {
this.$('.forum-nav-browse-menu-wrapper').show();
this.$('.forum-nav-thread-list-wrapper').hide();
$('.forum-nav-browse-filter-input').focus();
if (!initialLoad) {
$('.forum-nav-browse-filter-input').focus();
}
$('body').bind('click', this.hideBrowseMenu);
return this.updateSidebar();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment