From b2203542843cb45e402b1833198a0ffa42819551 Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Sat, 17 Mar 2018 16:55:46 +0000 Subject: [PATCH] Added display of `null` in data table view --- main/webapp/modules/core/scripts/views/data-table/cell-ui.js | 2 +- main/webapp/modules/core/styles/views/data-table-view.less | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main/webapp/modules/core/scripts/views/data-table/cell-ui.js b/main/webapp/modules/core/scripts/views/data-table/cell-ui.js index b1793a208..bffeb77a2 100644 --- a/main/webapp/modules/core/scripts/views/data-table/cell-ui.js +++ b/main/webapp/modules/core/scripts/views/data-table/cell-ui.js @@ -60,7 +60,7 @@ DataTableCellUI.prototype._render = function() { .mouseleave(function() { editLink.css("visibility", "hidden"); }); if (!cell || ("v" in cell && cell.v === null)) { - $('').html(" ").appendTo(divContent); + $('').addClass("data-table-null").html('null').appendTo(divContent); } else if ("e" in cell) { $('').addClass("data-table-error").text(cell.e).appendTo(divContent); } else if (!("r" in cell) || !cell.r) { diff --git a/main/webapp/modules/core/styles/views/data-table-view.less b/main/webapp/modules/core/styles/views/data-table-view.less index c6885da3d..327e9dacd 100644 --- a/main/webapp/modules/core/styles/views/data-table-view.less +++ b/main/webapp/modules/core/styles/views/data-table-view.less @@ -201,6 +201,10 @@ div.data-table-cell-content-numeric > a.data-table-cell-edit { color: #282; } +.data-table-null { + color: #aaa; + } + .data-table-error { color: red; }