1
0
mirror of https://github.com/2ec0b4/kaamelott-soundboard.git synced 2025-12-10 00:15:34 +00:00

WIP - Filtre les sons

This commit is contained in:
Antoine
2016-04-12 15:34:55 +02:00
parent bde2b12632
commit 2bc2196562
7 changed files with 47 additions and 37 deletions

View File

@@ -30,6 +30,12 @@ define(
that.render();
});
this.channel.on('sounds:filter', function(search) {
that.data.sounds = that.collection.filterByTitle(search).toJSON();
that.render();
});
},
stopPlayingSound: function() {
var playingSound = this.collection.findWhere({playing: true});