From 82a9f322e3120fe33cb97000556e31380b173510 Mon Sep 17 00:00:00 2001 From: vonavi Date: Thu, 17 Apr 2014 23:41:22 +0300 Subject: [PATCH] Chessboard: mark commented moves. --- _assets/javascripts/custom.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_assets/javascripts/custom.js b/_assets/javascripts/custom.js index 80096a7..2786395 100644 --- a/_assets/javascripts/custom.js +++ b/_assets/javascripts/custom.js @@ -17,6 +17,12 @@ function customFunctionOnPgnGameLoad() { function customFunctionOnMove() { refreshButtonset(); + /* Mark commented moves */ + for (var Ply = 1; Ply <= PlyNumberVar[0]; Ply++) { + if (strippedMoveComment(Ply, 0, true)) + $('#Var0Mv' + Ply).addClass('bg-info'); + } + /* Show move comment */ if (CurrentVar == 0 && (theObj = document.getElementById("GameMoveComment"))) { theObj.innerHTML = '' +