rjy7 2010-07-21 14:20:03 +00:00
parent 73eb40ce80
commit cb14df3cf7

View file

@ -87,11 +87,14 @@ var customForm = {
var typeVal = this.typeSelector.val();
if (this.findValidationErrors()) {
this.initFormWithValidationErrors();
//this.initFormFullView();
// Put this case first, because in edit mode with
// validation errors we just want initFormFullView.
if (this.editMode == 'edit') {
this.initFormFullView();
}
else if (this.findValidationErrors()) {
this.initFormWithValidationErrors();
}
// this.formSteps == 1 includes edit mode.
// If type is already selected when the page loads (Firefox retains value
// on a refresh), go directly to full view. Otherwise user has to reselect
// twice to get to full view.