+ methods: {
+ player_s: function(g) {
+ if (this.showBoth)
+ return (
+ (g.players[0].name || "@nonymous") +
+ " - " +
+ (g.players[1].name || "@nonymous")
+ );
+ if (
+ this.st.user.sid == g.players[0].sid ||
+ this.st.user.id == g.players[0].uid
+ )
+ return g.players[1].name || "@nonymous";
+ return g.players[0].name || "@nonymous";
+ },
+ deleteGame: function(game, e) {
+ if (game.score != "*") {
+ if (confirm(this.st.tr["Remove game?"])) GameStorage.remove(game.id);
+ e.stopPropagation();
+ }
+ }
+ }