dist/js/zui.js
function(modal, callback, redirect) {
        var originModal = modal;
        if($.isFunction(modal)) {
            var oldModal = redirect;
            redirect = callback;
            callback = modal;
            modal = oldModal;
        }
        modal = getModal(modal);
        if(modal && modal.length) {
            modal.each(function() {
                $(this).data(NAME).close(callback, redirect);
            });
        } else if(!$('body').hasClass('modal-open') && !$('.modal.in').length) {
            // check if current page is as modal iframe
            if ($('body').hasClass('body-modal')) {
                window.parent.$.zui.closeModal(originModal, callback, redirect);
            }
        }
    }
function(modal, callback, redirect) {
        var originModal = modal;
        if($.isFunction(modal)) {
            var oldModal = redirect;
            redirect = callback;
            callback = modal;
            modal = oldModal;
        }
        modal = getModal(modal);
        if(modal && modal.length) {
            modal.each(function() {
                $(this).data(NAME).close(callback, redirect);
            });
        } else if(!$('body').hasClass('modal-open') && !$('.modal.in').length) {
            // check if current page is as modal iframe
            if ($('body').hasClass('body-modal')) {
                window.parent.$.zui.closeModal(originModal, callback, redirect);
            }
        }
    }
function ( modal , callback , redirect ) { var originModal = modal ; if ( $ . isFunction ( modal ) ) { var oldModal = redirect ; redirect = callback ; callback = modal ; modal = oldModal ; } modal = getModal ( modal ) ; if ( modal && modal . length ) { modal . each ( function ( ) { $ ( this ) . data ( NAME ) . close ( callback , redirect ) ; } ) ; } else if ( ! $ ( 'body' ) . hasClass ( 'modal-open' ) && ! $ ( '.modal.in' ) . length ) { // check if current page is as modal iframe if ( $ ( 'body' ) . hasClass ( 'body-modal' ) ) { window . parent . $ . zui . closeModal ( originModal , callback , redirect ) ; } } }
callback, redirect, modal
callback redirect modal