aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-tabs.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-11-29 22:35:58 -0800
committerMark Otto <[email protected]>2011-11-29 22:35:58 -0800
commitcbb291b8ab316c3c0103da3c7b7a2c73596cfef2 (patch)
treee632dc37d1f3dda4e91a06d4f671313a7e476187 /js/bootstrap-tabs.js
parentb36df463108e2e4df8c389a06f577823564788d9 (diff)
parent08d0aff19f8ad8fa2a9cfa389b8753c4525ea99c (diff)
downloadbootstrap-cbb291b8ab316c3c0103da3c7b7a2c73596cfef2.tar.xz
bootstrap-cbb291b8ab316c3c0103da3c7b7a2c73596cfef2.zip
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
Conflicts: bootstrap.css bootstrap.min.css
Diffstat (limited to 'js/bootstrap-tabs.js')
-rw-r--r--js/bootstrap-tabs.js71
1 files changed, 0 insertions, 71 deletions
diff --git a/js/bootstrap-tabs.js b/js/bootstrap-tabs.js
deleted file mode 100644
index 86bd4784f..000000000
--- a/js/bootstrap-tabs.js
+++ /dev/null
@@ -1,71 +0,0 @@
-/* ========================================================
- * bootstrap-tabs.js v2.0.0
- * http://twitter.github.com/bootstrap/javascript.html#tabs
- * ========================================================
- * Copyright 2011 Twitter, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ======================================================== */
-
-
-!function( $ ){
-
- function activate ( element, container ) {
- container
- .find('> .active')
- .removeClass('active')
- .find('> .dropdown-menu > .active')
- .removeClass('active')
-
- element.addClass('active')
-
- if ( element.parent('.dropdown-menu') ) {
- element.closest('li.dropdown').addClass('active')
- }
- }
-
- function tab( e ) {
- var $this = $(this)
- , $ul = $this.closest('ul:not(.dropdown-menu)')
- , href = $this.attr('href')
- , previous
-
- if ( /^#\w+/.test(href) ) {
- e.preventDefault()
-
- if ( $this.parent('li').hasClass('active') ) {
- return
- }
-
- previous = $ul.find('.active a').last()[0]
- $href = $(href)
-
- activate($this.parent('li'), $ul)
- activate($href, $href.parent())
-
- $this.trigger({
- type: 'change'
- , relatedTarget: previous
- })
- }
- }
-
-
- /* TABS/PILLS PLUGIN DEFINITION
- * ============================ */
-
- $(function () {
- $('body').delegate('ul[data-tabs] > li > a, ul[data-pills] > li > a', 'click', tab)
- })
-
-}( window.jQuery || window.ender ); \ No newline at end of file