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

Random button styling

This commit is contained in:
Thomas Graviou
2020-01-28 13:22:01 +01:00
parent e836219021
commit aab98d7e8d
4 changed files with 21 additions and 34 deletions

View File

@@ -20,9 +20,11 @@ define("views/random", function(require) {
this.channel = Radio.channel("Sounds");
},
random: function() {
this.$el.find(this.ui.resetButton).removeClass('hidden');
this.channel.trigger("sounds:random");
},
reset: function() {
this.$el.find(this.ui.resetButton).addClass('hidden');
this.channel.trigger("sounds:reset");
}
});