mirror of
https://github.com/wallabag/wallabag.git
synced 2025-04-26 19:54:44 +00:00
Use native form reset for filters
This commit is contained in:
parent
28b675f48f
commit
c71b5b01a9
2 changed files with 1 additions and 7 deletions
|
@ -35,12 +35,6 @@ function initFilters() {
|
||||||
// no display if filters not available
|
// no display if filters not available
|
||||||
if ($('div').is('#filters')) {
|
if ($('div').is('#filters')) {
|
||||||
$('#filters.sidenav').sidenav({ edge: 'right' });
|
$('#filters.sidenav').sidenav({ edge: 'right' });
|
||||||
$('#clear_form_filters').on('click', () => {
|
|
||||||
$('#filters input').val('');
|
|
||||||
$('#filters :checked').removeAttr('checked');
|
|
||||||
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -262,7 +262,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col s6">
|
<div class="col s6">
|
||||||
<a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a>
|
<button type="reset" class="center waves-effect waves-green btn-flat">{{ 'entry.filters.action.clear'|trans }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col s6">
|
<div class="col s6">
|
||||||
|
|
Loading…
Reference in a new issue