# HG changeset patch # User Chloe Laisne # Date 1475437385 -7200 # Node ID e653de66f25214620144baef2cf241ef3b591372 # Parent fb11295ef6666b16535e7811afba61714dc9c31b Remove document filtering in playlist diff -r fb11295ef666 -r e653de66f252 cms/app-client/app/components/playlist-component.js --- a/cms/app-client/app/components/playlist-component.js Sun Oct 02 21:38:09 2016 +0200 +++ b/cms/app-client/app/components/playlist-component.js Sun Oct 02 21:43:05 2016 +0200 @@ -8,30 +8,7 @@ player: Ember.inject.service(), documents: Ember.computed('model', 'filter.location', 'filter.language', 'filter.discourse', 'filter.date', 'filter.theme', function() { - var self = this; - var documents = this.get('model'); - if (this.get('filter').get('date').length > 0) { - var copy = documents; - documents.map(function(document) { - if (self.get('filter').get('date').indexOf(document.get('created')) === -1){ - copy = copy.without(document); - } - }); - documents = copy; - } - if (this.get('filter').get('discourse')) { - documents = documents.filterBy('type', this.get('filter').get('discourse')); - } - if (this.get('filter').get('language')) { - documents = documents.filterBy('language', this.get('filter').get('language')); - } - if (this.get('filter').get('location')) { - documents = documents.filterBy('spatial', this.get('filter').get('location')); - } - if (this.get('filter').get('theme')) { - documents = documents.filterBy('thematique', this.get('filter').get('theme')); - } - return documents; + return this.get('model'); }), documentsLoaded: Ember.observer('documents', function() {