cms/app-client/app/components/notice-component.js
changeset 513 dad9471f0d63
parent 502 74fba571487e
child 519 ef3e4841d506
equal deleted inserted replaced
512:cf4653cf88f2 513:dad9471f0d63
    54             this.get('filter').setFilter('language', id);
    54             this.get('filter').setFilter('language', id);
    55         },
    55         },
    56 
    56 
    57         addTypeFilter: function(id) {
    57         addTypeFilter: function(id) {
    58             this.get('filter').setFilter('theme', id);
    58             this.get('filter').setFilter('theme', id);
       
    59         },
       
    60 
       
    61         addCreatedFilter: function(dateStr) {
       
    62           const date = new Date(dateStr);
       
    63           this.get('filter').setFilter('date', date.getFullYear().toString());
    59         }
    64         }
    60     }
    65     }
    61 
    66 
    62 });
    67 });