X-Git-Url: https://git.sesse.net/?p=remoteglot-book;a=blobdiff_plain;f=www%2Fjs%2Fbook.js;h=9ed5ee5c7ae31491bf8a170252d27cf9b8755fff;hp=8f0c24164d4434142ff0cd1ddd958520f2aebab6;hb=fc7cab1217dc904a888240e577f4da5001cf4bdb;hpb=16fa98491b12b956eda9fb057d5d62bec044dc07 diff --git a/www/js/book.js b/www/js/book.js index 8f0c241..9ed5ee5 100644 --- a/www/js/book.js +++ b/www/js/book.js @@ -191,10 +191,10 @@ var show_lines = function(data, game) { tr.appendChild(td); $(td).addClass("move"); if (line[j] !== undefined) { - if (history.length % 2 == 0) { - $(td).text(((history.length / 2) + 1) + ". "); + if (move_override % 2 == 0) { + $(td).text(((move_override / 2) + 1) + ". "); } else { - $(td).text(((history.length / 2) + 0.5) + ". …"); + $(td).text(((move_override / 2) + 0.5) + ". …"); } }