aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-08-28 17:40:25 -0700
committerJacob Thornton <[email protected]>2011-08-28 17:40:25 -0700
commit9059a72bf87cc7ac868d7d16333757445c28c31d (patch)
tree36733622cba18a60b4be417e2fa6cfc5168d00fa /examples
parentd8d6e400977e80fd50358b821bc643a2a73ca97e (diff)
downloadbootstrap-9059a72bf87cc7ac868d7d16333757445c28c31d.tar.xz
bootstrap-9059a72bf87cc7ac868d7d16333757445c28c31d.zip
try using tricker opacity thingy
Diffstat (limited to 'examples')
-rw-r--r--examples/assets/js/bootstrap-modal.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/assets/js/bootstrap-modal.js b/examples/assets/js/bootstrap-modal.js
index c4d917097..4bc395e1c 100644
--- a/examples/assets/js/bootstrap-modal.js
+++ b/examples/assets/js/bootstrap-modal.js
@@ -107,13 +107,10 @@
, animate = this.$element.hasClass('fade') ? 'fade' : ''
if ( this.isOpen && this.settings.backdrop ) {
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
+ .click(function () { that.close() })
.appendTo(document.body)
- $('body').delegate('.modal-backdrop', 'click.modal.backdrop', function () {
- that.close()
- })
} else if ( !this.isOpen && this.$backdrop ) {
this.$backdrop.removeClass('in')
- $('body').undelegate('click.modal.backdrop')
function removeElement() {
that.$backdrop.remove()