X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=97efaca26b1e3f47f6541710f8566a4a7c3214d6;hb=045fcbf700505f71416672ab1aaa2fbe6f7e58e4;hp=2ba3fe95248401613e28c4498dbdcf1ba1c0f6a7;hpb=2ce508cfa3a480b13350e713900543e23de48c4b;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 2ba3fe9..97efaca 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1340,6 +1340,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 +1352,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();