mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1623 Input filters not working
This commit is contained in:
parent
6a640cac41
commit
da0847346f
@ -176,10 +176,14 @@ $('.ad-info-right-bar-video').tooltip({
|
||||
$("#listFilterForm").submit(function(e) {
|
||||
const inputs = $('#listFilterForm :input');
|
||||
[...inputs].forEach((input) => {
|
||||
if ($(input).val() == ""
|
||||
|| $(input).prop("checked") == false
|
||||
|| $(input).find(':selected').val() == "") {
|
||||
$(input).prop('disabled', true);
|
||||
if (input.type === 'checkbox' || input.type === 'radio') {
|
||||
if ($(input).prop("checked") == false) {
|
||||
$(input).prop('disabled', true);
|
||||
}
|
||||
} else {
|
||||
if ($(input).val() == "" || $(input).find(':selected').val() == "") {
|
||||
$(input).prop('disabled', true);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user