1
0
mirror of https://github.com/2ec0b4/kaamelott-soundboard.git synced 2025-12-09 16:05:35 +00:00

Ajoute un tri sur le titre des sons

This commit is contained in:
Antoine
2016-04-13 12:54:52 +02:00
parent 15e32c8263
commit 1be8f3ff0e

View File

@@ -10,6 +10,7 @@ define(
var Sounds = Backbone.Collection.extend({ var Sounds = Backbone.Collection.extend({
model: Sound, model: Sound,
comparator: 'title',
url: 'sounds/sounds.json', url: 'sounds/sounds.json',
filterByTitle: function(search){ filterByTitle: function(search){
if( search == "" ) { if( search == "" ) {