Use active instead of hover for active sidebar option

Fix #8720
This commit is contained in:
Joas Schilling 2014-06-03 09:57:18 +02:00
parent 74c647bb6a
commit 74e2a4b154

View file

@ -82,13 +82,13 @@
}
return;
}
this.$el.find('li').removeClass('selected');
this.$el.find('li').removeClass('active');
if (this.$currentContent) {
this.$currentContent.addClass('hidden');
this.$currentContent.trigger(jQuery.Event('hide'));
}
this._activeItem = itemId;
this.$el.find('li[data-id=' + itemId + ']').addClass('selected');
this.$el.find('li[data-id=' + itemId + ']').addClass('active');
this.$currentContent = $('#app-content-' + itemId);
this.$currentContent.removeClass('hidden');
if (!options || !options.silent) {