Preview table: display reconciled cells instead of blanking them
This commit is contained in:
parent
3dcda5a42c
commit
e47fb3f2a6
@ -83,8 +83,13 @@ Refine.PreviewTable.prototype._render = function() {
|
|||||||
$('<span>').html(" ").appendTo(divContent);
|
$('<span>').html(" ").appendTo(divContent);
|
||||||
} else if ("e" in cell) {
|
} else if ("e" in cell) {
|
||||||
$('<span>').addClass("data-table-error").text(cell.e).appendTo(divContent);
|
$('<span>').addClass("data-table-error").text(cell.e).appendTo(divContent);
|
||||||
} else if (!("r" in cell) || !cell.r) {
|
} else {
|
||||||
if (typeof cell.v !== "string") {
|
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") {
|
if (typeof cell.v == "number") {
|
||||||
divContent.addClass("data-table-cell-content-numeric");
|
divContent.addClass("data-table-cell-content-numeric");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user