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:
Vendored
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user