1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-14 17:44:15 +02:00
This commit is contained in:
Mark Otto
2016-12-25 15:47:03 -08:00
parent c2e5eb1542
commit 0e8ee1bfba
18 changed files with 355 additions and 328 deletions

3
js/dist/tab.js vendored
View File

@@ -36,6 +36,7 @@ var Tab = function ($) {
var ClassName = {
DROPDOWN_MENU: 'dropdown-menu',
ACTIVE: 'active',
DISABLED: 'disabled',
FADE: 'fade',
SHOW: 'show'
};
@@ -73,7 +74,7 @@ var Tab = function ($) {
Tab.prototype.show = function show() {
var _this = this;
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName.ACTIVE)) {
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName.ACTIVE) || $(this._element).hasClass(ClassName.DISABLED)) {
return;
}

2
js/dist/tab.js.map vendored

File diff suppressed because one or more lines are too long