mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
maden bug fixed on slack channel
This commit is contained in:
parent
278d059407
commit
057dabfba3
@ -190,7 +190,7 @@ function SelectOnClick() {
|
|||||||
searchLocationName()
|
searchLocationName()
|
||||||
$('.loading').hide();
|
$('.loading').hide();
|
||||||
|
|
||||||
return $(".filter-location-body input[type='checkbox']").change(function () {
|
return $(".filter-location-body input[type='checkbox']").on('change', function () {
|
||||||
|
|
||||||
resetValue($(this).attr('data-field'), false, true)
|
resetValue($(this).attr('data-field'), false, true)
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ function SelectOnClick() {
|
|||||||
var id = $(this).attr('data-id');
|
var id = $(this).attr('data-id');
|
||||||
|
|
||||||
if ($(this).attr('data-field') == "country") {
|
if ($(this).attr('data-field') == "country") {
|
||||||
$('.selected-city').html('');
|
$('.selected-city small').html('');
|
||||||
$('input[name="city[]"]').val('');
|
$('input[name="city[]"]').val('');
|
||||||
// text_html.html(input_text)
|
// text_html.html(input_text)
|
||||||
// $(".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);
|
||||||
@ -247,7 +247,11 @@ function item(field_name, id, value, abv = '') {
|
|||||||
if (field_name === 'country') {
|
if (field_name === 'country') {
|
||||||
return '<li class="px-2" data-id="' + id + '">\n' +
|
return '<li class="px-2" data-id="' + id + '">\n' +
|
||||||
' <label class="w-100">\n' +
|
' <label class="w-100">\n' +
|
||||||
' <input type="checkbox" data-field="' + field_name + '" data-id="' + id + '" '+ selected +'>\n' +
|
' <input' +
|
||||||
|
'' +
|
||||||
|
'' +
|
||||||
|
'' +
|
||||||
|
' type="checkbox" data-field="' + field_name + '" data-id="' + id + '" '+ selected +'>\n' +
|
||||||
' <span class="flag ml-1 flag-' + abv + '">\n' +
|
' <span class="flag ml-1 flag-' + abv + '">\n' +
|
||||||
' </span>\n' +
|
' </span>\n' +
|
||||||
' <small>' + value + '</small>\n' +
|
' <small>' + value + '</small>\n' +
|
||||||
|
|||||||
@ -48,6 +48,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="text-muted selected-city">
|
<div class="text-muted selected-city">
|
||||||
|
<div>asd</div>
|
||||||
<small>{{ selected_cities_name|join(',') }}</small>
|
<small>{{ selected_cities_name|join(',') }}</small>
|
||||||
</div>
|
</div>
|
||||||
<input name="city[]" id="listCityFilter" type="hidden"
|
<input name="city[]" id="listCityFilter" type="hidden"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user