hide menu on backdrop click

This commit is contained in:
Alex Vasilenko
2014-07-02 16:44:22 +03:00
parent 473a741ede
commit dded81671a

View File

@@ -33,7 +33,7 @@
$(window).on('resize', $.proxy(this.recalc, this))
}
if (this.options.autohide)
if (this.options.autohide && !this.options.modal)
$(document).on('click', $.proxy(this.autohide, this))
if (this.options.toggle) this.toggle()
@@ -267,6 +267,7 @@
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
this.$backdrop.addClass('in')
this.$backdrop.on('click.bs', $.proxy(this.autohide, this))
doAnimate ?
this.$backdrop