parent
74c647bb6a
commit
74e2a4b154
|
@ -82,13 +82,13 @@
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$el.find('li').removeClass('selected');
|
this.$el.find('li').removeClass('active');
|
||||||
if (this.$currentContent) {
|
if (this.$currentContent) {
|
||||||
this.$currentContent.addClass('hidden');
|
this.$currentContent.addClass('hidden');
|
||||||
this.$currentContent.trigger(jQuery.Event('hide'));
|
this.$currentContent.trigger(jQuery.Event('hide'));
|
||||||
}
|
}
|
||||||
this._activeItem = itemId;
|
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 = $('#app-content-' + itemId);
|
||||||
this.$currentContent.removeClass('hidden');
|
this.$currentContent.removeClass('hidden');
|
||||||
if (!options || !options.silent) {
|
if (!options || !options.silent) {
|
||||||
|
|
Loading…
Reference in New Issue