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

Modifie le style de code

This commit is contained in:
Antoine
2016-04-10 23:43:43 +02:00
parent 36935c6c80
commit 878f37351f

View File

@@ -11,14 +11,16 @@ define(
template: SoundSearchTemplate, template: SoundSearchTemplate,
ui: { ui: {
searchForm: 'form', searchForm: 'form',
searchField:'form input[name="s"]', searchField: 'form input[name="s"]'
}, },
events: { events: {
'submit @ui.searchForm': 'filterSounds', 'submit @ui.searchForm': 'filterSounds',
'keyup @ui.searchField': 'filterSounds' 'keyup @ui.searchField': 'filterSounds'
}, },
filterSounds: function() { filterSounds: function(e) {
var search = $(this.ui.searchField).val(); var search = $(this.ui.searchField).val();
e.preventDefault();
} }
}); });