]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #7755
authorfat <jacobthornton@gmail.com>
Thu, 18 Jul 2013 06:15:50 +0000 (23:15 -0700)
committerfat <jacobthornton@gmail.com>
Thu, 18 Jul 2013 06:15:50 +0000 (23:15 -0700)
js/modal.js

index 43e961baa90d49c0a8b333cbc5f3b5ae15067a58..88bc1cb8048e7539efd38d08e07daebe3fe2edb9 100644 (file)
@@ -25,7 +25,7 @@
 
   var Modal = function (element, options) {
     this.options   = options
-    this.$element  = $(element).delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
+    this.$element  = $(element).on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
     this.$backdrop =
     this.isShown   = null