mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
fixed location country
This commit is contained in:
parent
2a7034016a
commit
2998fd4ca6
@ -198,7 +198,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") {
|
||||||
input.val(id)
|
$('input[name="country"]').val(id)
|
||||||
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);
|
||||||
|
|||||||
@ -3,13 +3,13 @@
|
|||||||
<b>
|
<b>
|
||||||
<span class="float-left">{{ trans('visiosoft.module.location::field.address.name') }}</span>
|
<span class="float-left">{{ trans('visiosoft.module.location::field.address.name') }}</span>
|
||||||
</b>
|
</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') %}
|
{% set country = setting_value('visiosoft.module.location::default_country') %}
|
||||||
{% if app.request.get('country') %}
|
{% if app.request.get('country') %}
|
||||||
{% set country = app.request.get('country') %}
|
{% set country = app.request.get('country') %}
|
||||||
{% endif %}
|
{% 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">
|
<input name="country" value="{{ country }}" type="hidden">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 px-0 py-1">
|
<div class="col-12 px-0 py-1">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user