diff --git a/js/modal.js b/js/modal.js index fe02d71d47..4ef39e0a58 100644 --- a/js/modal.js +++ b/js/modal.js @@ -218,7 +218,7 @@ var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7 var option = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) - e.preventDefault() + if ($this.is('a')) e.preventDefault() $target .modal(option, this)