Fix “no score for this move” message when viewing history.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 22 Mar 2016 18:54:05 +0000 (19:54 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 22 Mar 2016 18:54:05 +0000 (19:54 +0100)
www/js/remoteglot.js

index 5f0531e..e3b3202 100644 (file)
@@ -1085,7 +1085,7 @@ var update_board = function() {
        update_clock();
 
        // The score.
-       if (current_display_line) {
+       if (current_display_line && !current_display_line_is_history) {
                if (current_display_line.score) {
                        $("#score").text(format_long_score(current_display_line.score));
                } else {