diff options
| author | Jacob Thornton <[email protected]> | 2011-09-11 20:08:43 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-09-11 20:08:43 -0700 |
| commit | 173be3f1e87a83f8e85bef8ddb979a921ccee9d1 (patch) | |
| tree | d224c15b41174227a0e0c1fd5beffd7c1131d5fb /js/bootstrap-tabs.js | |
| parent | d9cbcfc20ded5f1cd1af4e304415b3405631f0bc (diff) | |
| download | bootstrap-173be3f1e87a83f8e85bef8ddb979a921ccee9d1.tar.xz bootstrap-173be3f1e87a83f8e85bef8ddb979a921ccee9d1.zip | |
change hella js... broke all the tests. i <3 wip
Diffstat (limited to 'js/bootstrap-tabs.js')
| -rw-r--r-- | js/bootstrap-tabs.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/bootstrap-tabs.js b/js/bootstrap-tabs.js index aaa73644d..c93bd745f 100644 --- a/js/bootstrap-tabs.js +++ b/js/bootstrap-tabs.js @@ -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 )
\ No newline at end of file |
