Skip to content

Commit 9bf9484

Browse files
authored
Merge pull request #2 from madhu72/madhu72-patch-1
Madhu72 patch 1
2 parents 4e1078b + 7442e07 commit 9bf9484

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/privates.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,22 @@ function saveCurrentStateToCookie(wizard, options, state)
11311131
}
11321132
}
11331133

1134+
/**
1135+
* sets a specific step object by index.
1136+
*
1137+
* @static
1138+
* @private
1139+
* @method setStep
1140+
* @param index {Integer} An integer that belongs to the position of a step
1141+
* @return {Boolean} Indicates whether the action executed
1142+
**/
1143+
function setStep(wizard, index)
1144+
{
1145+
var options = getOptions(wizard),
1146+
state = getState(wizard);
1147+
return paginationClick(wizard, options, state, index);
1148+
}
1149+
11341150
function startTransitionEffect(wizard, options, state, index, oldIndex, doneCallback)
11351151
{
11361152
var stepContents = wizard.find(".content > .body"),
@@ -1240,4 +1256,4 @@ function validateArgument(argumentName, argumentValue)
12401256
{
12411257
throwError("The argument '{0}' is null or undefined.", argumentName);
12421258
}
1243-
}
1259+
}

src/publics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ $.fn.steps.remove = function (index)
155155
**/
156156
$.fn.steps.setStep = function (index, step)
157157
{
158-
throw new Error("Not yet implemented!");
158+
return setStep(this,index);
159159
};
160160

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

0 commit comments

Comments
 (0)