mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Correct input filter component and remove the clear button
This commit is contained in:
parent
273a218ba8
commit
7b54377f92
3 changed files with 5 additions and 28 deletions
|
@ -21,21 +21,13 @@
|
|||
<div class="row" id="customers">
|
||||
<div id="filter-customers" class="filter-records col col-12 col-md-5">
|
||||
<form class="mb-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group mb-3">
|
||||
<input type="text" class="key form-control">
|
||||
|
||||
<div class="input-group-addon">
|
||||
<div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="clear btn btn-outline-secondary" type="button"
|
||||
data-tippy-content="<?= lang('clear') ?>">
|
||||
<i class="fas fa-redo-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="filter btn btn-outline-secondary" type="submit"
|
||||
data-tippy-content="<?= lang('filter') ?>">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -212,11 +212,6 @@ body legend {
|
|||
border-top: none;
|
||||
}
|
||||
|
||||
.backend-page .filter-records form .key {
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.backend-page .filter-records .results {
|
||||
overflow-y: auto;
|
||||
max-height: 650px;
|
||||
|
|
|
@ -37,16 +37,6 @@ App.Pages.Customers = (function () {
|
|||
filter(key);
|
||||
});
|
||||
|
||||
/**
|
||||
* Event: Filter Customers Clear Button "Click"
|
||||
*/
|
||||
$customers.on('click', '#filter-customers .clear', function () {
|
||||
$('#filter-customers .key').val('');
|
||||
filterLimit = 20;
|
||||
filter('');
|
||||
resetForm();
|
||||
});
|
||||
|
||||
/**
|
||||
* Event: Filter Entry "Click"
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue