1
Fork 0

Chessboard: mark commented moves.

master
vonavi 2014-04-17 23:41:22 +03:00
parent f011f4eba0
commit 82a9f322e3
1 changed files with 6 additions and 0 deletions

View File

@ -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 = '<span class="comment">' +