2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +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
+1 -1
View File
@@ -192,7 +192,7 @@
$(document).ready(function () {
$('body').delegate('[data-toggle="modal"]', 'click.modal.data-api', function ( e ) {
var $this = $(this)
, target = $this.attr('data-target')
, target = $this.attr('data-target') || $this.attr('href')
, option = $(target).data('modal') ? 'toggle' : $this.data()
e.preventDefault()
$(target).modal(option)