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

iFame problem #16

Closed theprimstore closed 9 years ago

theprimstore commented 9 years ago

Hi

i try click on demo iframe have problem loading not hide

theprimstore commented 9 years ago

Fix it on line 417

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

    return execute();
}

replace with

function iframeReady() {
    $(this)
        .parent()
        .find('div.modal-body')
        .fadeOut(function () {
            $(this).remove();
        });

    return execute();
}
saribe commented 9 years ago

Replaced by:

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

return execute();

}

Thanks.