gwu-libraries / TweetSets

Service for creating Twitter datasets for research and archiving.
MIT License
25 stars 2 forks source link

Check for full dataset needs to check all textarea inputs #120

Closed lwrubel closed 3 years ago

lwrubel commented 3 years ago

Currently, the check whether a user has put search criteria in a textarea input is using .val() and therefore only checking the first textarea.

Instead of !$('textarea').val() should use .filter():

$('textarea').filter(function() { return this.value === ''; }).length === 10

to confirm that all 10 textarea inputs are empty.