summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar
diff options
context:
space:
mode:
authorIgnatzHome <ignatz@maschath.de>2018-05-19 18:38:48 +0200
committerIgnatzHome <ignatz@maschath.de>2018-05-19 18:38:48 +0200
commitb00bd04baaa7cdad9b2162d13bff78d97d23f34a (patch)
tree3f67a00d1bd426c8e59407d10e489b75b759e464 /client/components/sidebar
parent977bce9eb2d367220f30d15e5913d62a2d22c8a0 (diff)
downloadwekan-b00bd04baaa7cdad9b2162d13bff78d97d23f34a.tar.gz
wekan-b00bd04baaa7cdad9b2162d13bff78d97d23f34a.tar.bz2
wekan-b00bd04baaa7cdad9b2162d13bff78d97d23f34a.zip
first test for Advanced Filter
Diffstat (limited to 'client/components/sidebar')
-rw-r--r--client/components/sidebar/sidebarFilters.jade2
-rw-r--r--client/components/sidebar/sidebarFilters.js5
2 files changed, 7 insertions, 0 deletions
diff --git a/client/components/sidebar/sidebarFilters.jade b/client/components/sidebar/sidebarFilters.jade
index 5f9fcf72..00d8c87b 100644
--- a/client/components/sidebar/sidebarFilters.jade
+++ b/client/components/sidebar/sidebarFilters.jade
@@ -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
diff --git a/client/components/sidebar/sidebarFilters.js b/client/components/sidebar/sidebarFilters.js
index ba2633de..6fb3f500 100644
--- a/client/components/sidebar/sidebarFilters.js
+++ b/client/components/sidebar/sidebarFilters.js
@@ -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();