aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-12-26 20:26:27 -0800
committerfat <[email protected]>2013-12-26 20:26:27 -0800
commitc595db19ff21b5782cf0d510a34ee943508d115c (patch)
treecbc5503a9e23111641b46bd3292d72303d540da6 /dist/js/bootstrap.js
parent499cca2115bd51c39a8f4ee659ad81082a6b4a5f (diff)
downloadbootstrap-c595db19ff21b5782cf0d510a34ee943508d115c.tar.xz
bootstrap-c595db19ff21b5782cf0d510a34ee943508d115c.zip
fixes #10911 - add loading event for use with remote option :|
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index e297e2d76..e1a7a7d0d 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -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 = {