Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2011-11-28 05:04:55 +0400
committerJacob Thornton <jacobthornton@gmail.com>2011-11-28 05:04:55 +0400
commit46fe38386afce7149810b1feb534726735ce28b2 (patch)
treec6a8b8e5c27a0aa30491f95505d7ed431845c5c7 /js/bootstrap-modal.js
parent3925ea9986e70f5a87883563c47c8ecd3d631c02 (diff)
rename tabs to tab - clean up lots of api stuff make href acceptable target val
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r--js/bootstrap-modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index dab67d1b23..5f543c5537 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -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)