VIVO627 submission validation for default template for multiple content types fixed to check for number of content types
This commit is contained in:
parent
b0c0c71cdb
commit
1ee2f64f13
1 changed files with 5 additions and 3 deletions
|
@ -905,9 +905,11 @@ var pageManagementUtils = {
|
|||
validationErrorMsg = pageManagementUtils.selectContentType + " <br /> ";
|
||||
} else {
|
||||
//If there are multiple content types, and the default template option is selected, then display error message
|
||||
if(pageContentSections.length > 1) {
|
||||
var selectedTemplateValue = $('input:radio[name=selectedTemplate]:checked').val();
|
||||
if(selectedTemplateValue == "default") {
|
||||
validationErrorMsg += pageManagementUtils.multipleContentWithDefaultTemplateError;
|
||||
validationErrorMsg += pageManagementUtils.multipleContentWithDefaultTemplateError + "<br/>";
|
||||
}
|
||||
}
|
||||
//For each, based on type, validate if a validation function exists
|
||||
$.each(pageContentSections, function(i) {
|
||||
|
|
Loading…
Add table
Reference in a new issue