X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=7ad1ff02565d904c2080e662a1ad7731b5a5f3e7;hp=21a995eea87a4073c7a92062ab8964e069baf340;hb=fa63488e30a81f4370aa1e9a565b3d2331f553a6;hpb=7fce0b7f07ae1d4377885fef9e9fbbf99c795035 diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 21a995e..7ad1ff0 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -822,7 +822,11 @@ var update_refutation_lines = function() { var depth_td = document.createElement("td"); tr.appendChild(depth_td); $(depth_td).addClass("depth"); - $(depth_td).text("d" + line['depth']); + if (line['depth'] && line['depth'] >= 0) { + $(depth_td).text("d" + line['depth']); + } else { + $(depth_td).text("—"); + } var pv_td = document.createElement("td"); tr.appendChild(pv_td);