From 18c1375a2fe128de7699bfcf7512926d4a8a07c1 Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Thu, 11 Nov 2021 21:59:26 +0530 Subject: [PATCH] Remove acceptance form fields whose values aren't used Values entered here have been unused since persondata was removed in https://github.com/WPAFC/afch-rewrite/commit/9632e4fd (2015). --- src/modules/submissions.js | 10 ---------- src/templates/tpl-submissions.html | 25 ------------------------- 2 files changed, 35 deletions(-) diff --git a/src/modules/submissions.js b/src/modules/submissions.js index 21489b7..dfdd502 100644 --- a/src/modules/submissions.js +++ b/src/modules/submissions.js @@ -1642,16 +1642,6 @@ } prefillBiographyDetails(); - // Ask for the month/day IF the birth year has been entered - $afch.find( '#birthYear' ).keyup( function () { - $afch.find( '#birthMonthDayWrapper' ).toggleClass( 'hidden', !this.value.length ); - } ); - - // Ask for the month/day IF the death year has been entered - $afch.find( '#deathYear' ).keyup( function () { - $afch.find( '#deathMonthDayWrapper' ).toggleClass( 'hidden', !this.value.length ); - } ); - // If subject is dead, show options for death details $afch.find( '#lifeStatus' ).change( function () { $afch.find( '#deathWrapper' ).toggleClass( 'hidden', $( this ).val() !== 'dead' ); diff --git a/src/templates/tpl-submissions.html b/src/templates/tpl-submissions.html index 4234bd0..e5cb0db 100644 --- a/src/templates/tpl-submissions.html +++ b/src/templates/tpl-submissions.html @@ -122,26 +122,11 @@ -
- - -
-
- - -
- - -
-
- - -
- - -
-