public/sistema/src/plugins/jquery-steps/jquery.steps.js
/**
     * Removes a specific step by an given index.
     *
     * @static
     * @private
     * @method removeStep
     * @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
     * @param index {Integer} The position (zero-based) of the step to remove
     * @return Indecates whether the item is removed.
     **/
Removes a specific step by an given index.
Removes a specific step by an given index .
function removeStep(wizard, options, state, index) {
        if (index < 0 || index >= state.stepCount || state.currentIndex === index) {
            return false;
        }
        removeStepFromCache(wizard, index);
        if (state.currentIndex > index) {
            state.currentIndex--;
            saveCurrentStateToCookie(wizard, options, state);
        }
        state.stepCount--;
        getStepTitle(wizard, index).remove();
        getStepPanel(wizard, index).remove();
        getStepAnchor(wizard, index).parent().remove();
        if (index === 0) {
            wizard.find(".steps li").first().addClass("first");
        }
        if (index === state.stepCount) {
            wizard.find(".steps li").eq(index).addClass("last");
        }
        refreshSteps(wizard, options, state, index);
        refreshPagination(wizard, options, state);
        return true;
    }
function removeStep ( wizard , options , state , index ) { if ( index < 0 || index >= state . stepCount || state . currentIndex === index ) { return false ; } removeStepFromCache ( wizard , index ) ; if ( state . currentIndex > index ) { state . currentIndex -- ; saveCurrentStateToCookie ( wizard , options , state ) ; } state . stepCount -- ; getStepTitle ( wizard , index ) . remove ( ) ; getStepPanel ( wizard , index ) . remove ( ) ; getStepAnchor ( wizard , index ) . parent ( ) . remove ( ) ; if ( index === 0 ) { wizard . find ( ".steps li" ) . first ( ) . addClass ( "first" ) ; } if ( index === state . stepCount ) { wizard . find ( ".steps li" ) . eq ( index ) . addClass ( "last" ) ; } refreshSteps ( wizard , options , state , index ) ; refreshPagination ( wizard , options , state ) ; return true ; }
Removes a specific step by an given index.
Removes a specific step by an given index .
// Index out of range and try deleting current item will return false. // Change data // Set the "first" class to the new first step button  // Set the "last" class to the new last step button 