Merge pull request #725 from openclassify/vedatak

Clear selected cities when country is changed
This commit is contained in:
Dia Shalabi 2020-10-19 11:03:11 +03:00 committed by GitHub
commit 417262d0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,8 @@ function SelectOnClick() {
if ($(this).attr('data-field') == "country") {
$('.filter-location-modal,.filter-location-back,.filter-location-modal .countries').hide();
$('input[name="country"]').val(id)
$('.selected-city').html('');
$('input[name="city[]"]').val('');
text_html.html(input_text)
$(".filter-location-body input[type='checkbox']").prop('checked', false);
$(".filter-location-body li[data-id='" + id + "'] input[type='checkbox']").prop('checked', true);