From c633ccfbb170faa249e59eddf9bc40670b12df7f Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Fri, 1 Jul 2016 10:57:37 +0000 Subject: [PATCH] SSDM-3817 : Checkbox to not show warning anymore on Plain text imports SVN: 36775 --- .../eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 9ff4aa5ede6..6c69aaf63c3 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 @@ -316,13 +316,12 @@ $.extend(Grid.prototype, { var dontShowAnymore = "<input type='checkbox' id='disablePlanTextExportWarning'> Don't show this warning again."; Util.showWarning("<b>DO NOT USE THIS FILE FOR BATCH UPDATE!</b><br>This file does not contain rich text format. If used for Batch Update, all rich text format in the updated entries will be lost!<br><br>" + dontShowAnymore, function() { - _this.exportTSVB(isAllRowsOrVisible, isAllColumnsOrVisible, plainText); - - var isSelected = $("#disablePlanTextExportWarning").val() === "on"; + var isSelected = $("#disablePlanTextExportWarning")[0].checked; if(_this.onChangeState) { _this.tableSettings.disablePlanTextExportWarning = isSelected; _this.onChangeState(_this.tableSettings); } + _this.exportTSVB(isAllRowsOrVisible, isAllColumnsOrVisible, plainText); }); } else { _this.exportTSVB(isAllRowsOrVisible, isAllColumnsOrVisible, plainText); -- GitLab