]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
shown.bs.modal fix
authorJacob Thornton <jacobthornton@gmail.com>
Wed, 24 Jul 2013 00:32:20 +0000 (17:32 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Wed, 24 Jul 2013 00:32:20 +0000 (17:32 -0700)
js/modal.js

index 88bc1cb8048e7539efd38d08e07daebe3fe2edb9..50ebd7b56ea60456c79f811eba4c3ddc23875975 100644 (file)
     })
 
     var $body = $(document.body)
-      .on('bs.modal.shown',  '.modal', function () { $body.addClass('modal-open') })
-      .on('bs.modal.hidden', '.modal', function () { $body.removeClass('modal-open') })
+      .on('shown.bs.modal',  '.modal', function () { $body.addClass('modal-open') })
+      .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
 
 }(window.jQuery);