diff --git a/build/jquery.steps-1.1.0.zip b/build/jquery.steps-1.1.0.zip index b762d08..3b077ab 100644 Binary files a/build/jquery.steps-1.1.0.zip and b/build/jquery.steps-1.1.0.zip differ diff --git a/build/jquery.steps.js b/build/jquery.steps.js index 956b05a..b2e75a5 100644 --- a/build/jquery.steps.js +++ b/build/jquery.steps.js @@ -1,6 +1,6 @@ /*! - * jQuery Steps v1.1.0 - 09/04/2014 - * Copyright (c) 2014 Rafael Staib (http://www.jquery-steps.com) + * jQuery Steps v1.1.0 - 09/30/2015 + * Copyright (c) 2015 Rafael Staib (http://www.jquery-steps.com) * Licensed under MIT http://www.opensource.org/licenses/MIT */ ;(function ($, undefined) @@ -233,12 +233,12 @@ function destroy(wizard, options) // Remove virtual data objects from the wizard wizard.unbind(eventNamespace).removeData("uid").removeData("options") .removeData("state").removeData("steps").removeData("eventNamespace") - .find(".actions a").unbind(eventNamespace); + .find("> .actions a").unbind(eventNamespace); // Remove attributes and CSS classes from the wizard wizard.removeClass(options.clearFixCssClass + " vertical"); - var contents = wizard.find(".content > *"); + var contents = wizard.find("> .content > *"); // Remove virtual data objects from panels and their titles contents.removeData("loaded").removeData("mode").removeData("url"); @@ -249,7 +249,7 @@ function destroy(wizard, options) ._removeAria("hidden"); // Empty panels if the mode is set to 'async' or 'iframe' - wizard.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty(); + wizard.find("> .content > [data-mode='async'],.content > [data-mode='iframe']").empty(); var wizardSubstitute = $("<{0} class=\"{1}\">".format(wizard.get(0).tagName, wizard.attr("class"))); @@ -259,7 +259,7 @@ function destroy(wizard, options) wizardSubstitute._id(wizardId); } - wizardSubstitute.html(wizard.find(".content").html()); + wizardSubstitute.html(wizard.find("> .content").html()); wizard.after(wizardSubstitute); wizard.remove(); @@ -277,7 +277,7 @@ function destroy(wizard, options) **/ function finishStep(wizard, state) { - var currentStep = wizard.find(".steps li").eq(state.currentIndex); + var currentStep = wizard.find("> .steps li").eq(state.currentIndex); if (wizard.triggerHandler("finishing", [state.currentIndex])) { @@ -517,7 +517,7 @@ function goToStep(wizard, options, state, index) } else { - wizard.find(".steps li").eq(oldIndex).addClass("error"); + wizard.find("> .steps li").eq(oldIndex).addClass("error"); } return true; @@ -609,7 +609,7 @@ function insertStep(wizard, options, state, index, step) } state.stepCount++; - var contentContainer = wizard.find(".content"), + var contentContainer = wizard.find("> .content"), header = $("<{0}>{1}".format(options.headerTag, step.title)), body = $("<{0}>".format(options.bodyTag)); @@ -709,7 +709,7 @@ function loadAsyncContent(wizard, options, state) switch (getValidEnumValue(contentMode, currentStep.contentMode)) { case contentMode.iframe: - wizard.find(".content > .body").eq(state.currentIndex).empty() + wizard.find("> .content > .body").eq(state.currentIndex).empty() .html("