]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Revert "Fix move highlights when collapsing/uncollapsing history."
[remoteglot] / www / js / remoteglot.js
index 2ba3fe95248401613e28c4498dbdcf1ba1c0f6a7..d6a08a875b8642332f76f6bf60222797eec36f6e 100644 (file)
@@ -754,7 +754,6 @@ var update_history = function() {
                        '(<a class="move" href="javascript:collapse_history(true)">collapse</a>) ' +
                        print_pv(0));
        }
-       update_move_highlight();
 }
 
 /**
@@ -1340,6 +1339,7 @@ var update_sparkline = function(data) {
                        }
                        // FIXME: at some widths, calling sparkline() seems to push
                        // #scorecontainer under the board.
+                       $('#scorespark').unbind('sparklineClick');
                        $("#scorespark").sparkline(scores, {
                                type: 'bar',
                                zeroColor: 'gray',
@@ -1351,6 +1351,7 @@ var update_sparkline = function(data) {
                                        return format_tooltip(data, fields[0].offset + first_move_num - 1);
                                }
                        });
+                       $('#scorespark').unbind('sparklineClick');
                        $('#scorespark').bind('sparklineClick', function(event) {
                                var sparkline = event.sparklines[0];
                                var region = sparkline.getCurrentRegionFields();