1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

change hella js... broke all the tests. i <3 wip

This commit is contained in:
Jacob Thornton
2011-09-11 20:08:43 -07:00
parent d9cbcfc20d
commit 173be3f1e8
7 changed files with 376 additions and 217 deletions

View File

@@ -49,10 +49,14 @@
/* TABS/PILLS PLUGIN DEFINITION
* ============================ */
$.fn.tabs = $.fn.pills = function () {
$.fn.tabs = $.fn.pills = function ( selector ) {
return this.each(function () {
$(this).delegate('.tabs > li > a, .pills > li > a, .dropdown-menu > li > a', 'click', tab)
$(this).delegate(selector || '.tabs li > a, .pills > li > a', 'click', tab)
})
}
$(function () {
$('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
})
})( jQuery || ender )