From 338b93ce3658c353d30f9f298682b40d0e807df4 Mon Sep 17 00:00:00 2001 From: Antoine Date: Sat, 23 Apr 2016 18:50:39 +0200 Subject: [PATCH] Ajoute le personnage dans la balise title et dans le filtre --- js/app/collections/sounds.js | 2 +- js/app/templates/sound.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app/collections/sounds.js b/js/app/collections/sounds.js index 7cb5b1e..ab911f8 100644 --- a/js/app/collections/sounds.js +++ b/js/app/collections/sounds.js @@ -19,7 +19,7 @@ define( var pattern = new RegExp(search, 'gi'); return new Sounds(this.filter(function(data) { - return pattern.test(data.get('title')); + return pattern.test(data.get('title')) || pattern.test(data.get('character')); })); } }); diff --git a/js/app/templates/sound.hbs b/js/app/templates/sound.hbs index fa1bd39..8f3503f 100644 --- a/js/app/templates/sound.hbs +++ b/js/app/templates/sound.hbs @@ -1 +1 @@ -{{title}} +{{title}}