diff options
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() |
