Permalink
Browse files

Added gamestart event. Fixed yourturn banner.

  • Loading branch information...
dshaw committed Aug 29, 2010
1 parent 40be60b commit 95b4759acd9d4c72d70fbb1bf6e0a9d10e0e72bb
Showing with 9 additions and 4 deletions.
  1. +9 −4 public/js/socket.js
View
@@ -35,10 +35,15 @@
}
},
destroyed : function(message) {
+ var msg = message.msg;
+ console.log(msg);
+ global.APPVIEW.next_page();
+ },
+ gamestart : function(message) {
var msg = message.msg;
console.log(msg);
- global.APPVIEW.next_page();
- },
+ alert(msg)
+ },
// not implemented
gravatar : function(message) {
var msg = message.msg || "";
@@ -83,8 +88,8 @@
yourturn : function(message) {
var msg = message.msg || "";
console.log(msg);
- $("#yourturn").slideDown();
- global.Target_Gameboard.set_your_turn(true);
+ $("#yourturn").show();
+ global.Target_Gameboard.set_your_turn(true);
}
};

0 comments on commit 95b4759

Please sign in to comment.