Skip to content

Commit

Permalink
remove old validation
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Nov 9, 2023
1 parent b9ab264 commit d6fde02
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/javascript/src/case_contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ $(() => { // JQuery's callback for the DOM loading
caseOccurredAt.val(timeZoneConvertedDate)
}

milesDriven.on('change', () => {
const contactMedium = $('input[name="case_contact[medium_type]"]:checked').val() || '(contact medium not set)'
const contactMediumInPerson = `${contactMedium}` === 'in-person'
const milesDrivenCount = milesDriven.val()

if (milesDrivenCount > 0 && !contactMediumInPerson) {
alert(`Just checking: you drove ${milesDrivenCount} miles for a ${contactMedium} contact?`)
}
})

function validateNoteContent (e) {
const noteContent = $('#case_contact_notes').val()
if (noteContent) {
Expand Down

0 comments on commit d6fde02

Please sign in to comment.