NIHVIVO-799 Revert change that shows full view of two-step form when a type is selected on page load: doesn't work for roles forms because there's no empty value.

This commit is contained in:
rjy7 2010-07-14 18:09:29 +00:00
parent d131d6e996
commit 87bdc3aa36
6 changed files with 13 additions and 10 deletions

View file

@ -78,11 +78,14 @@ var customForm = {
// 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.
else if (typeVal.length) {
this.acType = typeVal;
this.setLabelFieldLabel();
this.initFormFullView();
}
// RY Can't do this now: role forms don't have an empy option at the top (and can't at the
// moment, since there's no way to specify literal options without having them sorted).
// So when the page loads there's already a value selected.
// else if (typeVal.length) {
// this.acType = typeVal;
// this.setLabelFieldLabel();
// this.initFormFullView();
// }
else {
this.initFormTypeView();
}