mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge pull request #725 from openclassify/vedatak
Clear selected cities when country is changed
This commit is contained in:
commit
417262d0fe
@ -200,6 +200,8 @@ function SelectOnClick() {
|
|||||||
if ($(this).attr('data-field') == "country") {
|
if ($(this).attr('data-field') == "country") {
|
||||||
$('.filter-location-modal,.filter-location-back,.filter-location-modal .countries').hide();
|
$('.filter-location-modal,.filter-location-back,.filter-location-modal .countries').hide();
|
||||||
$('input[name="country"]').val(id)
|
$('input[name="country"]').val(id)
|
||||||
|
$('.selected-city').html('');
|
||||||
|
$('input[name="city[]"]').val('');
|
||||||
text_html.html(input_text)
|
text_html.html(input_text)
|
||||||
$(".filter-location-body input[type='checkbox']").prop('checked', false);
|
$(".filter-location-body input[type='checkbox']").prop('checked', false);
|
||||||
$(".filter-location-body li[data-id='" + id + "'] input[type='checkbox']").prop('checked', true);
|
$(".filter-location-body li[data-id='" + id + "'] input[type='checkbox']").prop('checked', true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user