X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=d6a08a875b8642332f76f6bf60222797eec36f6e;hb=0300e89e239df1e8385eb3294c9853381a71b519;hp=bed5a5cdf8ad3d1fdd4de3eb9cff1f8b39d17b4b;hpb=d9f38cb28bf7ceac256e78c47043cb08a5e2da3a;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index bed5a5c..d6a08a8 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1339,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', @@ -1350,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();