Skip to content

Instantly share code, notes, and snippets.

@ericf
Created January 23, 2011 22:09
Show Gist options
  • Select an option

  • Save ericf/792497 to your computer and use it in GitHub Desktop.

Select an option

Save ericf/792497 to your computer and use it in GitHub Desktop.
_uiSetStep : function (newStep, prevStep) {
var contentBox = this.get(CONTENT_BOX),
infoNodes = this.get(INFO_NODES),
prevInfoNode = isValue(prevStep) ? infoNodes.item(prevStep) : null,
newInfoNode = infoNodes.item(newStep);
if (isValue(prevInfoNode)) {
prevInfoNode.hide(true, function(){
prevInfoNode.remove();
newInfoNode.appendTo(contentBox).setStyles({ opacity: 0 }).show(true);
});
} else {
newInfoNode.appendTo(contentBox).setStyles({ opacity: 0 }).show(true);
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment