assets/vendors/bower_components/jquery.steps/build/jquery.steps.js
/**
     * Renders a pagination if enabled.
     *
     * @static
     * @private
     * @method renderPagination
     * @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
     */
Renders a pagination if enabled.
Renders a pagination if enabled .
function renderPagination(wizard, options, state) {
        if (options.enablePagination) {
            var pagination = "<{0} class=\"actions {1}\"><ul role=\"menu\" aria-label=\"{2}\">{3}</ul></{0}>",
                buttonTemplate = "<li><a href=\"#{0}\" role=\"menuitem\">{1}</a></li>",
                buttons = "";
            if (!options.forceMoveForward) {
                buttons += buttonTemplate.format("previous", options.labels.previous);
            }
            buttons += buttonTemplate.format("next", options.labels.next);
            if (options.enableFinishButton) {
                buttons += buttonTemplate.format("finish", options.labels.finish);
            }
            if (options.enableCancelButton) {
                buttons += buttonTemplate.format("cancel", options.labels.cancel);
            }
            wizard.append(pagination.format(options.actionContainerTag, options.clearFixCssClass,
                options.labels.pagination, buttons));
            refreshPagination(wizard, options, state);
            loadAsyncContent(wizard, options, state);
        }
    }
function renderPagination ( wizard , options , state ) { if ( options . enablePagination ) { var pagination = "<{0} class=\"actions {1}\"><ul role=\"menu\" aria-label=\"{2}\">{3}</ul></{0}>" , buttonTemplate = "<li><a href=\"#{0}\" role=\"menuitem\">{1}</a></li>" , buttons = "" ; if ( ! options . forceMoveForward ) { buttons += buttonTemplate . format ( "previous" , options . labels . previous ) ; } buttons += buttonTemplate . format ( "next" , options . labels . next ) ; if ( options . enableFinishButton ) { buttons += buttonTemplate . format ( "finish" , options . labels . finish ) ; } if ( options . enableCancelButton ) { buttons += buttonTemplate . format ( "cancel" , options . labels . cancel ) ; } wizard . append ( pagination . format ( options . actionContainerTag , options . clearFixCssClass , options . labels . pagination , buttons ) ) ; refreshPagination ( wizard , options , state ) ; loadAsyncContent ( wizard , options , state ) ; } }
Renders a pagination if enabled.
Renders a pagination if enabled .