mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-08 14:26:05 -06:00
#2621 OC - Listing SEO - Redirect chain
This commit is contained in:
parent
37688d824d
commit
8fac833881
@ -179,6 +179,7 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#listFilterForm").submit(function(e) {
|
$("#listFilterForm").submit(function(e) {
|
||||||
|
// Disable unselected inputs
|
||||||
const inputs = $('#listFilterForm :input');
|
const inputs = $('#listFilterForm :input');
|
||||||
[...inputs].forEach((input) => {
|
[...inputs].forEach((input) => {
|
||||||
if (input.type === 'checkbox' || input.type === 'radio') {
|
if (input.type === 'checkbox' || input.type === 'radio') {
|
||||||
@ -191,6 +192,11 @@ $("#listFilterForm").submit(function(e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Disable country if city is selected
|
||||||
|
if ($('#listCityFilter').val()) {
|
||||||
|
$('#listCountryFilter').prop('disabled', true)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Change view type
|
// Change view type
|
||||||
|
|||||||
@ -21,7 +21,8 @@
|
|||||||
</span>
|
</span>
|
||||||
<i class="fas fa-sort-down float-right"></i>
|
<i class="fas fa-sort-down float-right"></i>
|
||||||
</button>
|
</button>
|
||||||
<input name="country[]" value="{% if countrySlug %}{{ countrySlug.id }}{% else %}{{ params.param['country']|join(',') }}{% endif %}" type="hidden" multiple>
|
<input name="country[]" id="listCountryFilter" type="hidden" multiple
|
||||||
|
value="{% if countrySlug %}{{ countrySlug.id }}{% else %}{{ params.param['country']|join(',') }}{% endif %}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 px-0 py-1">
|
<div class="col-12 px-0 py-1">
|
||||||
@ -45,7 +46,7 @@
|
|||||||
<div class="text-muted selected-city">
|
<div class="text-muted selected-city">
|
||||||
<small>{{ selected_cities_name|join(',') }}</small>
|
<small>{{ selected_cities_name|join(',') }}</small>
|
||||||
</div>
|
</div>
|
||||||
<input name="city[]" type="hidden"
|
<input name="city[]" id="listCityFilter" type="hidden"
|
||||||
value="{% if citySlug %}{{ citySlug.id }}{% else %}{{ params.param['city']|join(',') }}{% endif %}">
|
value="{% if citySlug %}{{ citySlug.id }}{% else %}{{ params.param['city']|join(',') }}{% endif %}">
|
||||||
</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