--- a/cms/app-client/app/components/filtering-component.js Sun Jul 17 22:17:24 2016 +0200
+++ b/cms/app-client/app/components/filtering-component.js Sun Jul 17 23:58:55 2016 +0200
@@ -33,6 +33,10 @@
focusIn: function() {
this.set('isDropdownOpen', true);
+ },
+
+ keyUp: function() {
+ this.set('input', Ember.$('input').val());
}
},
--- a/cms/app-client/app/models/document.js Sun Jul 17 22:17:24 2016 +0200
+++ b/cms/app-client/app/models/document.js Sun Jul 17 23:58:55 2016 +0200
@@ -30,7 +30,6 @@
media: Ember.computed('mediaArray', function() {
var array = [];
- var mp3 = null;
_.forEach(this.get('mediaArray'), function(media) {
var index = array.findIndex(element => element.format === media.format);
if(index > -1) {
--- a/cms/app-client/app/routes/tabs/thematiques.js Sun Jul 17 22:17:24 2016 +0200
+++ b/cms/app-client/app/routes/tabs/thematiques.js Sun Jul 17 23:58:55 2016 +0200
@@ -24,11 +24,11 @@
value = self.get('themes').pushObjects(value.get('content'));
}
self.set('themes', value);
- })
+ });
return promise;
}),
- setupController: function(controller, model) {
+ setupController: function(controller) {
this._super(...arguments);
controller.set('all', this.get('all'));
// Add ArrayProxy to template context.
--- a/cms/app-client/app/templates/components/filtering-component.hbs Sun Jul 17 22:17:24 2016 +0200
+++ b/cms/app-client/app/templates/components/filtering-component.hbs Sun Jul 17 23:58:55 2016 +0200
@@ -1,4 +1,4 @@
-{{ input value=input type='text' placeholder='Rechercher une thématique' focus-in='focusIn'}}
+<input type="text" placeholder="Rechercher une thématique" {{action "keyUp" on="keyUp"}} {{action "focusIn" on="focusIn"}}>
{{#if filteredThemes.length}}
<ul class="filters{{if isDropdownOpen ' open'}}">
{{#each filteredThemes as |theme|}}