From dac03b1b8f1f90b340eecd29c6c42b27d8f6d53b Mon Sep 17 00:00:00 2001 From: rjy7 Date: Wed, 14 Jul 2010 22:44:53 +0000 Subject: [PATCH] NIHVIVO-799 Select list type HARDCODED_LITERALS allows specification of an empty value for a select list item. --- productMods/edit/forms/addClinicalRoleToPerson.jsp | 4 ++-- productMods/edit/forms/addHeadOfRoleToPerson.jsp | 4 ++-- productMods/edit/forms/addOutreachRoleToPerson.jsp | 4 ++-- productMods/edit/forms/addPresenterRoleToPerson.jsp | 4 ++-- .../edit/forms/addResearcherRoleToPerson.jsp | 4 ++-- .../edit/forms/addServiceProviderRoleToPerson.jsp | 4 ++-- productMods/edit/forms/addTeacherRoleToPerson.jsp | 4 ++-- .../forms/js/customFormWithAdvanceTypeSelection.js | 13 +++++-------- 8 files changed, 19 insertions(+), 22 deletions(-) diff --git a/productMods/edit/forms/addClinicalRoleToPerson.jsp b/productMods/edit/forms/addClinicalRoleToPerson.jsp index dab841f2..5d94676c 100644 --- a/productMods/edit/forms/addClinicalRoleToPerson.jsp +++ b/productMods/edit/forms/addClinicalRoleToPerson.jsp @@ -4,7 +4,7 @@ - + - + \ No newline at end of file diff --git a/productMods/edit/forms/addHeadOfRoleToPerson.jsp b/productMods/edit/forms/addHeadOfRoleToPerson.jsp index a6316bc9..50a7e632 100644 --- a/productMods/edit/forms/addHeadOfRoleToPerson.jsp +++ b/productMods/edit/forms/addHeadOfRoleToPerson.jsp @@ -4,11 +4,11 @@ - + - + - + - + \ No newline at end of file diff --git a/productMods/edit/forms/addResearcherRoleToPerson.jsp b/productMods/edit/forms/addResearcherRoleToPerson.jsp index d08052c4..e075311c 100644 --- a/productMods/edit/forms/addResearcherRoleToPerson.jsp +++ b/productMods/edit/forms/addResearcherRoleToPerson.jsp @@ -4,7 +4,7 @@ - + - + \ No newline at end of file diff --git a/productMods/edit/forms/addServiceProviderRoleToPerson.jsp b/productMods/edit/forms/addServiceProviderRoleToPerson.jsp index cdcafcf6..a7cddffa 100644 --- a/productMods/edit/forms/addServiceProviderRoleToPerson.jsp +++ b/productMods/edit/forms/addServiceProviderRoleToPerson.jsp @@ -4,10 +4,10 @@ - + - + - + \ No newline at end of file diff --git a/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js b/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js index 401d7325..03d0515d 100644 --- a/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js +++ b/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js @@ -78,14 +78,11 @@ 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. -// 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 if (typeVal.length) { + this.acType = typeVal; + this.setLabelFieldLabel(); + this.initFormFullView(); + } else { this.initFormTypeView(); }