diff options
| author | Jacob Thornton <[email protected]> | 2011-11-27 17:04:55 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-11-27 17:04:55 -0800 |
| commit | 46fe38386afce7149810b1feb534726735ce28b2 (patch) | |
| tree | c6a8b8e5c27a0aa30491f95505d7ed431845c5c7 /js/bootstrap-collapse.js | |
| parent | 3925ea9986e70f5a87883563c47c8ecd3d631c02 (diff) | |
| download | bootstrap-46fe38386afce7149810b1feb534726735ce28b2.tar.xz bootstrap-46fe38386afce7149810b1feb534726735ce28b2.zip | |
rename tabs to tab - clean up lots of api stuff make href acceptable target val
Diffstat (limited to 'js/bootstrap-collapse.js')
| -rw-r--r-- | js/bootstrap-collapse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bootstrap-collapse.js b/js/bootstrap-collapse.js index 6de3d971a..629d9b589 100644 --- a/js/bootstrap-collapse.js +++ b/js/bootstrap-collapse.js @@ -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) }) }) |
