Skip to content

Madhu72 patch 1 #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/privates.js
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,22 @@ function saveCurrentStateToCookie(wizard, options, state)
}
}

/**
* sets a specific step object by index.
*
* @static
* @private
* @method setStep
* @param index {Integer} An integer that belongs to the position of a step
* @return {Boolean} Indicates whether the action executed
**/
function setStep(wizard, index)
{
var options = getOptions(wizard),
state = getState(wizard);
return paginationClick(wizard, options, state, index);
}

function startTransitionEffect(wizard, options, state, index, oldIndex, doneCallback)
{
var stepContents = wizard.find(".content > .body"),
Expand Down Expand Up @@ -1240,4 +1256,4 @@ function validateArgument(argumentName, argumentValue)
{
throwError("The argument '{0}' is null or undefined.", argumentName);
}
}
}
4 changes: 2 additions & 2 deletions src/publics.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ $.fn.steps.remove = function (index)
**/
$.fn.steps.setStep = function (index, step)
{
throw new Error("Not yet implemented!");
return setStep(this,index);
};

/**
Expand All @@ -168,4 +168,4 @@ $.fn.steps.setStep = function (index, step)
$.fn.steps.skip = function (count)
{
throw new Error("Not yet implemented!");
};
};