fixed location country

This commit is contained in:
vedatakd 2020-01-22 16:22:46 +03:00
parent 2a7034016a
commit 2998fd4ca6
2 changed files with 4 additions and 4 deletions

View File

@ -198,7 +198,7 @@ function SelectOnClick() {
var id = $(this).attr('data-id');
if ($(this).attr('data-field') == "country") {
input.val(id)
$('input[name="country"]').val(id)
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);

View File

@ -3,13 +3,13 @@
<b>
<span class="float-left">{{ trans('visiosoft.module.location::field.address.name') }}</span>
</b>
<a href="#" class="a-sahibinden-type selected-country filter-country-btn float-right">
<small>{{ getCountry(setting_value('visiosoft.module.location::default_country')).name }}</small>
</a>
{% set country = setting_value('visiosoft.module.location::default_country') %}
{% if app.request.get('country') %}
{% set country = app.request.get('country') %}
{% endif %}
<a href="#" class="a-sahibinden-type selected-country filter-country-btn float-right">
<small>{{ getCountry(country).name }}</small>
</a>
<input name="country" value="{{ country }}" type="hidden">
</div>
<div class="col-12 px-0 py-1">