mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-10 00:15:34 +00:00
styling
This commit is contained in:
@@ -65,6 +65,8 @@ define("views/sounds", function(require) {
|
||||
Radio.channel("Sounds").trigger("sound:play", args.model.getSlug());
|
||||
},
|
||||
randomSound: function() {
|
||||
this.stopPlayingSound();
|
||||
|
||||
this.filterCollection("");
|
||||
var index = Math.floor(Math.random() * Math.floor(this.collection.length));
|
||||
var sound = this.collection.models[index];
|
||||
|
||||
Reference in New Issue
Block a user