mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Clear selected cities when country is changed
This commit is contained in:
parent
3c7a09e139
commit
8dcc55da57
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user