Modal ajax loading indication.
Created by: undsoft
Hello,
If I use remote modal dialogs, right now there is no native way for me to inform user that his content is loading. On slow connections this could be frustrating.
I know that there are ways to work around this, but why not have a better solution right out of the box?
For example, you could be adding .modal-loading class to the modal element when content is loading, so that I can style it with css.
modal.js, line 32:
if (this.options.remote) {
var that = this;
this.$element.addClass('modal-loading');
this.$element.load(this.options.remote, function(){
that.$element.addClass('modal-loading');
});
}
Adding events may also be a nice solution.