diff options
| author | Jacob Thornton <[email protected]> | 2011-10-29 18:49:35 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-10-29 18:49:35 -0700 |
| commit | ea50e8aeeed6616a61a7e44d28fe60ced327be0c (patch) | |
| tree | c4b4e7a6c81da4145d638ede025ba14eac2f47ff /js/bootstrap-tabs.js | |
| parent | e8b66a9626055957a378464e2b9204f156b34c17 (diff) | |
| download | bootstrap-ea50e8aeeed6616a61a7e44d28fe60ced327be0c.tar.xz bootstrap-ea50e8aeeed6616a61a7e44d28fe60ced327be0c.zip | |
add active class to css for buttons, write new spec for button, "use strict"
Diffstat (limited to 'js/bootstrap-tabs.js')
| -rw-r--r-- | js/bootstrap-tabs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/bootstrap-tabs.js b/js/bootstrap-tabs.js index 9ccf85436..ef7d4af15 100644 --- a/js/bootstrap-tabs.js +++ b/js/bootstrap-tabs.js @@ -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() |
