diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2020-03-02 21:26:30 +0100 |
---|---|---|
committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2020-03-16 14:01:36 +0000 |
commit | 1ba0b953862e953a8af9fc8a0f1c9ff372b169cf (patch) | |
tree | ef1e7d562e0b1f6e24004ba0318eca5b6f60edc6 /xstatic/pkg/bootstrap_scss/data/js/bootstrap/tab.js | |
parent | ca68078e755659b32c61cdf9766fd1ea83c45485 (diff) | |
download | xstatic-bootstrap-scss-master.tar.gz |
Change-Id: I38c8d1114fd6e6629b4f3a16a85e3e35d8d8d3d6
Diffstat (limited to 'xstatic/pkg/bootstrap_scss/data/js/bootstrap/tab.js')
-rw-r--r-- | xstatic/pkg/bootstrap_scss/data/js/bootstrap/tab.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/xstatic/pkg/bootstrap_scss/data/js/bootstrap/tab.js b/xstatic/pkg/bootstrap_scss/data/js/bootstrap/tab.js index c4a8635..74495df 100644 --- a/xstatic/pkg/bootstrap_scss/data/js/bootstrap/tab.js +++ b/xstatic/pkg/bootstrap_scss/data/js/bootstrap/tab.js @@ -1,8 +1,8 @@ /* ======================================================================== - * Bootstrap: tab.js v3.3.7 - * http://getbootstrap.com/javascript/#tabs + * Bootstrap: tab.js v3.4.1 + * https://getbootstrap.com/docs/3.4/javascript/#tabs * ======================================================================== - * Copyright 2011-2016 Twitter, Inc. + * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ @@ -19,7 +19,7 @@ // jscs:enable requireDollarBeforejQueryAssignment } - Tab.VERSION = '3.3.7' + Tab.VERSION = '3.4.1' Tab.TRANSITION_DURATION = 150 @@ -48,7 +48,7 @@ if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return - var $target = $(selector) + var $target = $(document).find(selector) this.activate($this.closest('li'), $ul) this.activate($target, $target.parent(), function () { @@ -73,15 +73,15 @@ $active .removeClass('active') .find('> .dropdown-menu > .active') - .removeClass('active') + .removeClass('active') .end() .find('[data-toggle="tab"]') - .attr('aria-expanded', false) + .attr('aria-expanded', false) element .addClass('active') .find('[data-toggle="tab"]') - .attr('aria-expanded', true) + .attr('aria-expanded', true) if (transition) { element[0].offsetWidth // reflow for transition @@ -93,10 +93,10 @@ if (element.parent('.dropdown-menu').length) { element .closest('li.dropdown') - .addClass('active') + .addClass('active') .end() .find('[data-toggle="tab"]') - .attr('aria-expanded', true) + .attr('aria-expanded', true) } callback && callback() |