Merge r967 from http://svn.mannlib.cornell.edu/svn/vivo/branches/rel-1.1-maint
This commit is contained in:
parent
73eb40ce80
commit
cb14df3cf7
1 changed files with 9 additions and 6 deletions
|
@ -85,13 +85,16 @@ var customForm = {
|
|||
|
||||
initFormView: function() {
|
||||
|
||||
var typeVal = this.typeSelector.val();
|
||||
|
||||
if (this.findValidationErrors()) {
|
||||
this.initFormWithValidationErrors();
|
||||
//this.initFormFullView();
|
||||
var typeVal = this.typeSelector.val();
|
||||
|
||||
// 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.
|
||||
|
|
Loading…
Add table
Reference in a new issue