mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-09 08:03:24 +00:00
Filtrage lors de l'aléatoire
This commit is contained in:
@@ -9,16 +9,21 @@ define("views/random", function(require) {
|
||||
RandomView = Marionette.LayoutView.extend({
|
||||
template: RandomTemplate,
|
||||
ui: {
|
||||
randomButton: "button"
|
||||
randomButton: "#random",
|
||||
resetButton: "#reset"
|
||||
},
|
||||
events: {
|
||||
"click @ui.randomButton": "random"
|
||||
"click @ui.randomButton": "random",
|
||||
"click @ui.resetButton": "reset"
|
||||
},
|
||||
initialize: function() {
|
||||
this.channel = Radio.channel("Sounds");
|
||||
},
|
||||
random: function() {
|
||||
this.channel.trigger("sounds:random");
|
||||
},
|
||||
reset: function() {
|
||||
this.channel.trigger("sounds:reset");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user