cms/app-client/app/components/notice-component.js
changeset 513 dad9471f0d63
parent 502 74fba571487e
child 519 ef3e4841d506
--- a/cms/app-client/app/components/notice-component.js	Wed Feb 15 22:53:52 2017 +0100
+++ b/cms/app-client/app/components/notice-component.js	Thu Feb 16 16:10:07 2017 +0100
@@ -56,6 +56,11 @@
 
         addTypeFilter: function(id) {
             this.get('filter').setFilter('theme', id);
+        },
+
+        addCreatedFilter: function(dateStr) {
+          const date = new Date(dateStr);
+          this.get('filter').setFilter('date', date.getFullYear().toString());
         }
     }