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>2012-01-28 13:35:13 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-01-28 13:35:13 +0400
commite61164e67a048c20c512e99335e3adfcc3b63604 (patch)
tree19dbad10850668c9aa755c106f1a1765145080f9 /js/bootstrap-modal.js
parent81c128fd0b15157cc270c4bde33c399d65fe859d (diff)
all unit tests passing in ie7
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r--js/bootstrap-modal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index eea1938d0f..91daa8af67 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -193,8 +193,8 @@
$(function () {
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
- var $this = $(this)
- , $target = $($this.attr('data-target') || $this.attr('href'))
+ var $this = $(this), href
+ , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
, option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
e.preventDefault()