Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More resignation fixes

Fixing two more resignation problems.
 - Fixed the javascript for a successful response after clicking
   'resign'.
 - Fixed the template rendering of 'play.html' after a resignation.
  • Loading branch information...
commit 3d876db47b9d567527d35bfd02f860c8cdfb8d4c 1 parent 33e1daf
@duncanexonsmith duncanexonsmith authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  www/go.py
  2. +1 −1  www/static/js/go.js
View
3  www/go.py
@@ -1788,7 +1788,8 @@ def get(self, cookie, *args):
'you_win_python' : you_win,
'opponent_wins' : "true" if opponent_wins else "false",
'opponent_wins_python' : opponent_wins,
- 'by_resignation' : by_resignation,
+ 'by_resignation' : "true" if by_resignation else "false",
+ 'by_resignation_python' : by_resignation,
'board_class': board.get_class(),
'komi': board.get_komi(),
'show_grid': "true" if player.get_safe_show_grid() else "false",
View
2  www/static/js/go.js
@@ -2426,7 +2426,7 @@ var GameController = Class.create({
this.you_win = false;
this.opponent_wins = true;
- finish_game();
+ this.finish_game();
},
by_resignation : function()
Please sign in to comment.
Something went wrong with that request. Please try again.