Skip to content

Commit

Permalink
Processed needs to be skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie Allinson committed Apr 15, 2020
1 parent b4afa55 commit e7ddd13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export class RequiredFields {
// Find the immediate field-wrapper
// Gather the inputs
this.inputs = $(required).closest('li.field-wrapper').find(':input');
// Skip the current elem, any hidden fields and any buttons, skip operator (role) (pre-filled but should not be required)
// Skip the current elem, any hidden fields and any buttons, skip operator (role), Processed (date) (pre-filled but should not be required)
if (this.inputs.filter((n, el) => {
if (
!el.parentNode.className.includes("hidden") && !el.className.includes('btn') && !el.className.includes('remove-hidden') && el != required && el.value !== 'operator' ) {
!el.parentNode.className.includes("hidden") && !el.className.includes('btn') && !el.className.includes('remove-hidden') && el != required && el.value !== 'operator' && el.value !== 'Processed' ) {
return (el.value !== '');
}
} ).length > 0) {
Expand Down

0 comments on commit e7ddd13

Please sign in to comment.