mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-03 15:24:19 +01:00
Merge pull request #259 from jacobfike/master
fixes #258, clicking a tab remove .active class from all elements on the page
This commit is contained in:
commit
75cbf0d251
2
js/bootstrap-tabs.js
vendored
2
js/bootstrap-tabs.js
vendored
@ -28,7 +28,7 @@
|
|||||||
function tab( e ) {
|
function tab( e ) {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
, href = $this.attr('href')
|
, href = $this.attr('href')
|
||||||
, $ul = $(e.liveFired)
|
, $ul = $this.closest('ul')
|
||||||
, $controlled
|
, $controlled
|
||||||
|
|
||||||
if (/^#\w+/.test(href)) {
|
if (/^#\w+/.test(href)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user