From e47fb3f2a6b4613de4ae308b2501e9727d93a24d Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Wed, 16 Aug 2017 09:01:16 +0100 Subject: [PATCH] Preview table: display reconciled cells instead of blanking them --- .../scripts/index/parser-interfaces/preview-table.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/scripts/index/parser-interfaces/preview-table.js b/main/webapp/modules/core/scripts/index/parser-interfaces/preview-table.js index 95fb85da7..ce9361415 100644 --- a/main/webapp/modules/core/scripts/index/parser-interfaces/preview-table.js +++ b/main/webapp/modules/core/scripts/index/parser-interfaces/preview-table.js @@ -83,8 +83,13 @@ Refine.PreviewTable.prototype._render = function() { $('').html(" ").appendTo(divContent); } else if ("e" in cell) { $('').addClass("data-table-error").text(cell.e).appendTo(divContent); - } else if (!("r" in cell) || !cell.r) { - if (typeof cell.v !== "string") { + } else { + if ("r" in cell && cell.ri !== null) { + $('') + .attr("href", "#") // we don't have access to the reconciliation data here + .text(cell.v) + .appendTo(divContent); + } else if (typeof cell.v !== "string") { if (typeof cell.v == "number") { divContent.addClass("data-table-cell-content-numeric"); }