mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
added filter reset button
This commit is contained in:
parent
9b7f48fad7
commit
cc27e14241
@ -238,7 +238,7 @@ ul {
|
|||||||
/* End Keyword */
|
/* End Keyword */
|
||||||
|
|
||||||
/* Filter submit */
|
/* Filter submit */
|
||||||
#filterSubmit {
|
#filterSubmit, #filterReset {
|
||||||
button {
|
button {
|
||||||
background-color: #52C946;
|
background-color: #52C946;
|
||||||
font-size: calc(12rem / 16);
|
font-size: calc(12rem / 16);
|
||||||
|
|||||||
@ -160,6 +160,13 @@ $(document).ready(function () {
|
|||||||
$("select[name=filter_City]").select2({
|
$("select[name=filter_City]").select2({
|
||||||
placeholder: $('select[name=filter_City] option:first-child').text()
|
placeholder: $('select[name=filter_City] option:first-child').text()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.filter-form-reset').on('click', function () {
|
||||||
|
let form = $("#listFilterForm");
|
||||||
|
form.find('input:text, input:password, input:file, input[type="number"], select, textarea').val('');
|
||||||
|
form.find('input:radio, input:checkbox').removeAttr('checked').removeAttr('selected');
|
||||||
|
form.submit();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function getCities(country) {
|
function getCities(country) {
|
||||||
|
|||||||
@ -134,6 +134,7 @@ return [
|
|||||||
'home' => 'Home',
|
'home' => 'Home',
|
||||||
'list-page' => 'List Page',
|
'list-page' => 'List Page',
|
||||||
'search' => 'Search',
|
'search' => 'Search',
|
||||||
|
'reset' => 'Reset',
|
||||||
'recommended' => 'Recommended Ads for You',
|
'recommended' => 'Recommended Ads for You',
|
||||||
'filter' => 'Filter',
|
'filter' => 'Filter',
|
||||||
'sort' => 'Sort',
|
'sort' => 'Sort',
|
||||||
|
|||||||
@ -148,10 +148,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Keyword Filter End -->
|
<!-- Keyword Filter End -->
|
||||||
|
<div class="d-flex justify-content-end">
|
||||||
<div id="filterSubmit" class="px-3 text-right">
|
<div id="filterReset" class="mr-1 text-right">
|
||||||
<button type="submit" class="btn text-white btn-sm px-3">
|
<button type="reset" class="btn btn-light bg-light btn-sm px-3 filter-form-reset">
|
||||||
{{ trans("visiosoft.module.advs::field.search") }}
|
{{ trans("visiosoft.module.advs::field.reset") }}
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
<div id="filterSubmit" class="text-right">
|
||||||
|
<button type="submit" class="btn text-white btn-sm px-3">
|
||||||
|
{{ trans("visiosoft.module.advs::field.search") }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user