From a8b5052b009e253731852af429a764c9b0c99bdc Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Sun, 18 Feb 2018 23:35:00 +0000 Subject: [PATCH] Add "Blank out cells (empty string)" to common transformations menu --- main/webapp/modules/core/langs/translation-en.json | 1 + .../modules/core/scripts/views/data-table/menu-edit-cells.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/main/webapp/modules/core/langs/translation-en.json b/main/webapp/modules/core/langs/translation-en.json index b792014df..8f2301147 100644 --- a/main/webapp/modules/core/langs/translation-en.json +++ b/main/webapp/modules/core/langs/translation-en.json @@ -615,6 +615,7 @@ "to-date": "To date", "to-text": "To text", "blank-out": "Blank out cells (null)", + "blank-out-empty": "Blank out cells (empty string)", "fill-down": "Fill down", "blank-down": "Blank down", "split-cells": "Split multi-valued cells", diff --git a/main/webapp/modules/core/scripts/views/data-table/menu-edit-cells.js b/main/webapp/modules/core/scripts/views/data-table/menu-edit-cells.js index ec0343e67..8298bdc2e 100644 --- a/main/webapp/modules/core/scripts/views/data-table/menu-edit-cells.js +++ b/main/webapp/modules/core/scripts/views/data-table/menu-edit-cells.js @@ -268,6 +268,11 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) { id: "core/to-blank", label: $.i18n._('core-views')["blank-out"], click: function() { doTextTransform("null", "keep-original", false, ""); } + }, + { + id: "core/to-empty", + label: $.i18n._('core-views')["blank-out-empty"], + click: function() { doTextTransform("\"\"", "keep-original", false, ""); } } ] },