1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-08-13 13:07:32 +00:00
This commit is contained in:
exane
2015-06-18 15:31:36 +02:00
parent 6667db814c
commit cc7c988144
5 changed files with 29 additions and 22 deletions

@@ -444,6 +444,11 @@ var User = Backbone.Model.extend({
self.set("passing", passing);
})
app.receive("foe:left", function() {
console.log("your foe left the room");
$(".container").prepend('<div class="alert alert-danger">Your foe left the battle!</div>')
})
app.on("createRoom", this.createRoom, this);
app.on("joinRoom", this.joinRoom, this);