X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=inline;f=www%2Fjs%2Fremoteglot.js;h=486ca8de6c1bb45c755de95a6de78d62ff38d831;hb=960b6ea34239ae508e3ab9841665fd7ba390fba3;hp=984404044fada1114f58039d71325263d563ea15;hpb=c6fd0e51076f8cd4fe04265bdd3283c8bea508f2;p=remoteglot
diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js
index 9844040..486ca8d 100644
--- a/www/js/remoteglot.js
+++ b/www/js/remoteglot.js
@@ -777,8 +777,9 @@ var update_refutation_lines = function() {
$(move_td).addClass("move");
if (line['pv_pretty'].length == 0) {
- // Not found.
- $(move_td).text(line['pretty_move']);
+ // Not found, so just make a one-move PV.
+ var move = "" + line['pretty_move'] + "";
+ $(move_td).html(move);
var score_td = document.createElement("td");
$(score_td).addClass("score");
@@ -790,16 +791,17 @@ var update_refutation_lines = function() {
$(depth_td).addClass("depth");
$(depth_td).text("â");
+ var pv_td = document.createElement("td");
+ tr.appendChild(pv_td);
+ $(pv_td).addClass("pv");
+ $(pv_td).html(add_pv(base_fen, base_line.concat([ line['pretty_move'] ]), move_num, toplay, start_display_move_num));
+
tbl.append(tr);
continue;
}
- if (line['pv_pretty'].length == 0) {
- $(move_td).text(line['pretty_move']);
- } else {
- var move = "" + line['pretty_move'] + "";
- $(move_td).html(move);
- }
+ var move = "" + line['pretty_move'] + "";
+ $(move_td).html(move);
var score_td = document.createElement("td");
tr.appendChild(score_td);