Preview table: display reconciled cells instead of blanking them

This commit is contained in:
Antonin Delpeuch 2017-08-16 09:01:16 +01:00
parent 3dcda5a42c
commit e47fb3f2a6

View File

@ -83,8 +83,13 @@ Refine.PreviewTable.prototype._render = function() {
$('<span>').html("&nbsp;").appendTo(divContent);
} else if ("e" in cell) {
$('<span>').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) {
$('<a>')
.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");
}