2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

rename tabs to tab - clean up lots of api stuff make href acceptable target val

This commit is contained in:
Jacob Thornton
2011-11-27 17:04:55 -08:00
parent 3925ea9986
commit 46fe38386a
8 changed files with 161 additions and 124 deletions
+2 -2
View File
@@ -117,9 +117,9 @@
$(function () {
$('body').delegate('[data-toggle=collapse]', 'click.collapse.data-api', function ( e ) {
var $this = $(this)
, target = $this.attr('data-target')
, target = $this.attr('data-target') || $this.attr('href')
, option = $(target).data('collapse') ? 'toggle' : $this.data()
e.preventDefault()
e.preventDefault()
$(target).collapse(option)
})
})