saribe / eModal

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.
http://saribe.github.io/eModal
271 stars 97 forks source link

iframe function does not return modal $Dom Element #92

Open paulQdata opened 4 years ago

paulQdata commented 4 years ago

The iframe function is supposed to return the modal $DOM element, according to the function documentation. Currently, the promise is resolved with

function iframeReady() {
               $(this)
                    .parent()
                    .find('div.' + tmpModalContent)
                    .fadeOut(function () {
                        $(this).remove();
                    });
                return dfd.resolve();
            }

Resolving with nothing, To return the modal $DOM element, i had to modify the resolv call into

               return dfd.resolve($modal);