mirror of
https://github.com/wekan/wekan.git
synced 2025-12-31 22:58:48 +01:00
first test for Advanced Filter
This commit is contained in:
parent
977bce9eb2
commit
b00bd04baa
3 changed files with 118 additions and 2 deletions
|
|
@ -55,6 +55,8 @@ template(name="filterSidebar")
|
|||
{{ name }}
|
||||
if Filter.customFields.isSelected _id
|
||||
i.fa.fa-check
|
||||
hr
|
||||
input.js-field-advanced-filter(type="text")
|
||||
if Filter.isActive
|
||||
hr
|
||||
a.sidebar-btn.js-clear-all
|
||||
|
|
|
|||
|
|
@ -16,6 +16,11 @@ BlazeComponent.extendComponent({
|
|||
Filter.customFields.toggle(this.currentData()._id);
|
||||
Filter.resetExceptions();
|
||||
},
|
||||
'input .js-field-advanced-filter'(evt) {
|
||||
evt.preventDefault();
|
||||
Filter.advanced.set(this.find('.js-field-advanced-filter').value.trim());
|
||||
Filter.resetExceptions();
|
||||
},
|
||||
'click .js-clear-all'(evt) {
|
||||
evt.preventDefault();
|
||||
Filter.reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue