narrow: Fix narrowing errors for topics with name 'home'.

Added a `.home-link` class to 'Home' links to separate them
from topic links with the name 'home'

Fixes #3340
This commit is contained in:
Sampriti Panda
2017-01-16 21:13:02 +05:30
committed by showell
parent 7b5bc40b42
commit b4b6516ca0
3 changed files with 3 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ $(function () {
// HOME
// Capture both the left-sidebar Home click and the tab breadcrumb Home
$(document).on('click', "li[data-name='home']", function (e) {
$(document).on('click', ".home-link[data-name='home']", function (e) {
ui.change_tab_to('#home');
narrow.deactivate();
// We need to maybe scroll to the selected message