aboutsummaryrefslogtreecommitdiff
path: root/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 /js
parent499cca2115bd51c39a8f4ee659ad81082a6b4a5f (diff)
downloadbootstrap-c595db19ff21b5782cf0d510a34ee943508d115c.tar.xz
bootstrap-c595db19ff21b5782cf0d510a34ee943508d115c.zip
fixes #10911 - add loading event for use with remote option :|
Diffstat (limited to 'js')
-rw-r--r--js/modal.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js
index e74b59137..5fd53b849 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -18,7 +18,9 @@
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 = {