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

Filtrage lors de l'aléatoire

This commit is contained in:
Thomas Graviou
2019-10-25 14:25:51 +02:00
parent 0261f2b86b
commit aa163e62e1
5 changed files with 39 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ define("app", function(require) {
Radio.channel("App").reply("region:show", this.showRegion.bind(this));
Radio.channel("App").reply("modal:show", this.showModal.bind(this));
Radio.channel("Sounds").on("sound:play", this.changeUrl.bind(this));
Radio.channel("Sounds").on("sound:stop", this.resetUrl.bind(this));
this.router = new Marionette.AppRouter();
@@ -43,7 +44,11 @@ define("app", function(require) {
},
changeUrl: function(slug) {
this.router.navigate("son/"+slug, {trigger: true});
this.router.navigate("son/"+slug);
},
resetUrl: function() {
this.router.navigate("/");
},
showRegion: function showRegion(params) {