jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

Problem with function getOptions(wizard) and getState(wizard)

Open ghost opened this issue 8 years ago • 2 comments

When calling function, get error getOptions() is not defined

$.fn.steps.incomplete = function (i) {
    var wizard = this,
    options = getOptions(this),
    state = getState(this);

    if (i < state.stepCount) {
        var stepAnchor = getStepAnchor(wizard, i);
        stepAnchor.parent().addClass("disabled");
        stepAnchor.parent().removeClass("done")._enableAria(false);
        refreshSteps(wizard, options, state, i);
    }
};

ghost avatar Jun 08 '17 05:06 ghost

I have the same problem. Please help.

dsanabriav avatar Jun 21 '17 18:06 dsanabriav

What I am thinking is: you added function at the end of file jquery.steps.js that's way unable to detect getOption.

You must add this function before this line. })(jQuery);

AhmadMurtaza1 avatar Jul 01 '18 08:07 AhmadMurtaza1