From c595db19ff21b5782cf0d510a34ee943508d115c Mon Sep 17 00:00:00 2001 From: fat Date: Thu, 26 Dec 2013 20:26:27 -0800 Subject: fixes #10911 - add loading event for use with remote option :| --- dist/js/bootstrap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dist/js/bootstrap.js') 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 = { -- cgit v1.2.3