X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=d6a08a875b8642332f76f6bf60222797eec36f6e;hb=0300e89e239df1e8385eb3294c9853381a71b519;hp=2ba3fe95248401613e28c4498dbdcf1ba1c0f6a7;hpb=2ce508cfa3a480b13350e713900543e23de48c4b;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 2ba3fe9..d6a08a8 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -754,7 +754,6 @@ var update_history = function() { '(collapse) ' + 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();