X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fbook.js;fp=www%2Fjs%2Fbook.js;h=ebccd1ef2fdf99eb909134ecf3b1d5adcc6e6487;hb=26150eda6eb2024c27bf24d3c6ea0414ae932dd2;hp=c6290f17cd13ff6dcaea29928a59834a8e995fe5;hpb=6f3012bcc5128d52ba23058dcff0cb7f759eaf1f;p=remoteglot-book diff --git a/www/js/book.js b/www/js/book.js index c6290f1..ebccd1e 100644 --- a/www/js/book.js +++ b/www/js/book.js @@ -48,11 +48,11 @@ var update = function() { board.position(current_display_fen()); } + $("#board").find('.square-55d63').removeClass('nonuglyhighlight'); if (move_override > 0) { var last_move = history[move_override - 1]; var highlight_from = last_move.from; var highlight_to = last_move.to; - $("#board").find('.square-55d63').removeClass('nonuglyhighlight'); $("#board").find('.square-' + highlight_from).addClass('nonuglyhighlight'); $("#board").find('.square-' + highlight_to).addClass('nonuglyhighlight'); }