public/sistema/src/plugins/jquery-steps/jquery.steps.js
/**
     * Loads and includes async content.
     *
     * @static
     * @private
     * @method loadAsyncContent
     * @param wizard {Object} A jQuery wizard object
     * @param options {Object} Settings of the current wizard
     * @param state {Object} The state container of the current wizard
     */
Loads and includes async content.
Loads and includes async content .
function loadAsyncContent(wizard, options, state) {
        if (state.stepCount > 0) {
            var currentIndex = state.currentIndex,
                currentStep = getStep(wizard, currentIndex);
            if (!options.enableContentCache || !currentStep.contentLoaded) {
                switch (getValidEnumValue(contentMode, currentStep.contentMode)) {
                    case contentMode.iframe:
                        wizard.find(".content > .body").eq(state.currentIndex).empty()
                            .html("<iframe src=\"" + currentStep.contentUrl + "\" frameborder=\"0\" scrolling=\"no\" />")
                            .data("loaded", "1");
                        break;
                    case contentMode.async:
                        var currentStepContent = getStepPanel(wizard, currentIndex)._aria("busy", "true")
                            .empty().append(renderTemplate(options.loadingTemplate, {
                                text: options.labels.loading
                            }));
                        $.ajax({
                            url: currentStep.contentUrl,
                            cache: false
                        }).done(function (data) {
                            currentStepContent.empty().html(data)._aria("busy", "false").data("loaded", "1");
                            wizard.triggerHandler("contentLoaded", [currentIndex]);
                        });
                        break;
                }
            }
        }
    }
function loadAsyncContent ( wizard , options , state ) { if ( state . stepCount > 0 ) { var currentIndex = state . currentIndex , currentStep = getStep ( wizard , currentIndex ) ; if ( ! options . enableContentCache || ! currentStep . contentLoaded ) { switch ( getValidEnumValue ( contentMode , currentStep . contentMode ) ) { case contentMode . iframe : wizard . find ( ".content > .body" ) . eq ( state . currentIndex ) . empty ( ) . html ( "<iframe src=\"" + currentStep . contentUrl + "\" frameborder=\"0\" scrolling=\"no\" />" ) . data ( "loaded" , "1" ) ; break ; case contentMode . async : var currentStepContent = getStepPanel ( wizard , currentIndex ) . _aria ( "busy" , "true" ) . empty ( ) . append ( renderTemplate ( options . loadingTemplate , { text : options . labels . loading } ) ) ; $ . ajax ( { url : currentStep . contentUrl , cache : false } ) . done ( function ( data ) { currentStepContent . empty ( ) . html ( data ) . _aria ( "busy" , "false" ) . data ( "loaded" , "1" ) ; wizard . triggerHandler ( "contentLoaded" , [ currentIndex ] ) ; } ) ; break ; } } } }
Loads and includes async content.
Loads and includes async content .