add remoteload event #5490

Closed
wants to merge 1 commit into
from
@@ -30,7 +30,10 @@
this.options = options
this.$element = $(element)
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
- this.options.remote && this.$element.find('.modal-body').load(this.options.remote)
+ var elem=this.$element;
+ this.options.remote && this.$element.find('.modal-body').load(this.options.remote,
+ function(responseText, textStatus, xhr){elem.trigger('remoteload');}
+ )
}
Modal.prototype = {
@@ -236,4 +239,4 @@
})
})
-}(window.jQuery);
+}(window.jQuery);