Skip to content

Commit

Permalink
Remove acceptance form fields whose values aren't used (wikimedia-gad…
Browse files Browse the repository at this point in the history
…gets#191)

Values entered here have been unused since persondata was removed in wikimedia-gadgets@9632e4fd (2015).
  • Loading branch information
siddharthvp committed Dec 28, 2021
1 parent fe3f126 commit cb217ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
10 changes: 0 additions & 10 deletions src/modules/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1664,16 +1664,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' );
Expand Down
25 changes: 0 additions & 25 deletions src/templates/tpl-submissions.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,26 +122,11 @@
<input type="text" id="subjectName" class="afch-input afch-textfield" placeholder="Magellan, Ferdinand"/>
</div>

<div id="subjectDescriptionWrapper">
<label for="subjectDescription" class="afch-label">Description of the subject</label>
<input type="text" id="subjectDescription" class="afch-input afch-textfield" placeholder="Sea explorer"/>
</div>

<div id="birthYearWrapper">
<label for="birthYear" class="afch-label">Year of birth</label>
<input type="text" id="birthYear" class="afch-input afch-textfield" placeholder="1901"/>
</div>

<div id="birthMonthDayWrapper" class="hidden">
<label for="birthMonthDay" class="afch-label">Month and day of birth</label>
<input type="text" id="birthMonthDay" class="afch-input afch-textfield" placeholder="November 2"/>
</div>

<div id="birthPlaceWrapper">
<label for="birthPlace" class="afch-label">Place of birth</label>
<input type="text" id="birthPlace" class="afch-input afch-textfield" placeholder="Memphis, Tennessee"/>
</div>

<div id="lifeStatusWrapper">
<label for="lifeStatus" class="afch-label">Is the subject alive?</label>
<select id="lifeStatus" class="afch-input">
Expand All @@ -158,16 +143,6 @@
<input type="text" id="deathYear" class="afch-input afch-textfield" placeholder="1999"/>
</div>

<div id="deathMonthDayWrapper" class="hidden">
<label for="deathMonthDay" class="afch-label">Month and day of death</label>
<input type="text" id="deathMonthDay" class="afch-input afch-textfield" placeholder="December 13"/>
</div>

<div id="deathPlaceWrapper">
<label for="deathPlace" class="afch-label">Place of death</label>
<input type="text" id="deathPlace" class="afch-input afch-textfield" placeholder="London, England"/>
</div>

</div>

</div>
Expand Down

0 comments on commit cb217ed

Please sign in to comment.