diff -r b7c691c6179d -r a441c40f9c5e cms/app-client/app/controllers/application.js --- a/cms/app-client/app/controllers/application.js Thu Jun 23 11:35:26 2016 +0200 +++ b/cms/app-client/app/controllers/application.js Thu Jun 23 17:09:32 2016 +0200 @@ -56,39 +56,6 @@ return this.store.findRecord('document', this.get('detail')); }), - filteredDocuments: Ember.computed('filter.location', 'filter.langue', 'filter.discours', 'filter.date', 'filter.thematique', 'model', function() { - var location = this.get('location'); - var langue = this.get('langue'); - var discours = this.get('discours'); - var date = this.get('date'); - var thematique = this.get('thematique'); - - var documents = this.get('model'); - - if (location) { - documents = documents.filterBy('spatial', location); - } - if (langue) { - documents = documents.filterBy('language', langue); - } - if (discours) { - documents = documents.filterBy('type', discours); - } - if (date.length > 0) { - var temp = documents; - documents.map(function(elt){ - if (date.indexOf(elt.get('created')) === -1){ - temp = temp.without(elt); - } - }); - documents = temp; - } - if (thematique) { - documents = documents.filterBy('thematique', thematique); - } - return documents; - }), - actions: { deleteTag: function(key, value){