From e6c7bce52a8b2e2307ef3b28edb007bca994033b Mon Sep 17 00:00:00 2001 From: modpluz Date: Wed, 12 Feb 2014 10:29:11 +0200 Subject: [PATCH] Update jquery.steps.js Implemented "setStep" functionality --- build/jquery.steps.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build/jquery.steps.js b/build/jquery.steps.js index 9929e76..2b01b44 100644 --- a/build/jquery.steps.js +++ b/build/jquery.steps.js @@ -1440,11 +1440,13 @@ $.fn.steps.remove = function (index) * * @method setStep * @param index {Integer} An integer that belongs to the position of a step - * @param step {Object} The step object to change **/ -$.fn.steps.setStep = function (index, step) +$.fn.steps.setStep = function (index) { - throw new Error("Not yet implemented!"); + var options = getOptions(this), + state = getState(this); + + return goToStep(this, options, state, index); }; /** @@ -2027,4 +2029,4 @@ $.fn.extend({ return this.attr("id", id); } }); -})(jQuery); \ No newline at end of file +})(jQuery);