1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 13:13:03 +02:00

fixes #10911 - add loading event for use with remote option :|

This commit is contained in:
fat
2013-12-26 20:26:27 -08:00
parent 499cca2115
commit c595db19ff
5 changed files with 12 additions and 4 deletions

View File

@@ -787,7 +787,9 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
this.$backdrop =
this.isShown = null
if (this.options.remote) this.$element.find('.modal-content').load(this.options.remote)
if (this.options.remote) this.$element.find('.modal-content').load(this.options.remote, $.proxy(function () {
this.$element.trigger('loaded.bs.modal')
}, this))
}
Modal.DEFAULTS = {