mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 05:19:15 +02:00
add active class to css for buttons, write new spec for button, "use strict"
This commit is contained in:
3
js/bootstrap-tabs.js
vendored
3
js/bootstrap-tabs.js
vendored
@@ -20,6 +20,8 @@
|
||||
|
||||
!function( $ ){
|
||||
|
||||
"use strict"
|
||||
|
||||
function activate ( element, container ) {
|
||||
container
|
||||
.find('> .active')
|
||||
@@ -39,6 +41,7 @@
|
||||
, $ul = $this.closest('ul:not(.dropdown-menu)')
|
||||
, href = $this.attr('href')
|
||||
, previous
|
||||
, $href
|
||||
|
||||
if ( /^#\w+/.test(href) ) {
|
||||
e.preventDefault()
|
||||
|
Reference in New Issue
Block a user