function createModalUsingAjax () {

        var $this = this;
        buildStaticModal.call(this);
        $this.setModalLoader(true);

        $.ajax($this.defaults.ajaxModalParams).done(function (data) {
            $this.defaults.content = data;
            $this.setModalContent(data);
            $("#" + $this.defaults.id).trigger('hideModalLoader');
            $this.defaults.ajaxDoneCallback(data);
        }).fail(function (data) {
            $this.defaults.ajaxFailCallback(data);
        }).always(function() {

        });
    }
/**
     * Create modal and insert content from request using ajax
     */
Create modal and insert content from request using ajax
Create modal and insert content from request using ajax
function createModalUsingAjax () {
        var $this = this;
        buildStaticModal.call(this);
        $this.setModalLoader(true);
        $.ajax($this.defaults.ajaxModalParams).done(function (data) {
            $this.defaults.content = data;
            $this.setModalContent(data);
            $("#" + $this.defaults.id).trigger('hideModalLoader');
            $this.defaults.ajaxDoneCallback(data);
        }).fail(function (data) {
            $this.defaults.ajaxFailCallback(data);
        }).always(function() {
        });
    }
function createModalUsingAjax ( ) { var $this = this ; buildStaticModal . call ( this ) ; $this . setModalLoader ( true ) ; $ . ajax ( $this . defaults . ajaxModalParams ) . done ( function ( data ) { $this . defaults . content = data ; $this . setModalContent ( data ) ; $ ( "#" + $this . defaults . id ) . trigger ( 'hideModalLoader' ) ; $this . defaults . ajaxDoneCallback ( data ) ; } ) . fail ( function ( data ) { $this . defaults . ajaxFailCallback ( data ) ; } ) . always ( function ( ) { } ) ; }
Create modal and insert content from request using ajax
Create modal and insert content from request using ajax