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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user