From e6483bfec3510b012df1d3ffea7385290231fc70 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Mon, 20 Jun 2016 08:53:59 +0000 Subject: [PATCH] SSDM-3732 : Warning SVN: 36710 --- .../1/as/webapps/eln-lims/html/lib/grid/js/Grid.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js index 2a1835aa1d1..dce7323edfb 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js @@ -310,6 +310,16 @@ $.extend(Grid.prototype, { }, exportTSV : function(isAllRowsOrVisible, isAllColumnsOrVisible, plainText) { + var _this = this; + if(plainText) { + Util.showWarning("<b>Don't use this file for imports</b><br>Do understand that you are importing the data removing the rich text format. If you use this file to import data back, you will be removing the rich text format on the database!", function() { + _this.exportTSVB(isAllRowsOrVisible, isAllColumnsOrVisible, plainText); + }); + } else { + _this.exportTSVB(isAllRowsOrVisible, isAllColumnsOrVisible, plainText); + } + }, + exportTSVB : function(isAllRowsOrVisible, isAllColumnsOrVisible, plainText) { var thisGrid = this; var exportColumnsFromData = function(namePrefix, data, headings) { -- GitLab