From: Nick Veys Date: Sat, 17 Sep 2011 19:47:38 +0000 (-0500) Subject: Adding flag to prevent backdrop click hiding modal X-Git-Tag: v1.4.0~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cb233319da422c9f003e8687d686e96a92be489;p=thirdparty%2Fbootstrap.git Adding flag to prevent backdrop click hiding modal --- diff --git a/docs/javascript.html b/docs/javascript.html index f001ad8083..e0d85f25a7 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -105,6 +105,12 @@ false Includes a modal-backdrop element + + backdropClickHides + boolean + true + A click on the modal-backdrop element hides the modal + keyboard boolean diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index da67060731..98e5d43015 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -133,8 +133,10 @@ , animate = this.$element.hasClass('fade') ? 'fade' : '' if ( this.isShown && this.settings.backdrop ) { this.$backdrop = $('