From e707d3d54d3a2a17b90455c9abd147b770e200ee Mon Sep 17 00:00:00 2001 From: = Date: Tue, 16 Jun 2020 20:14:45 +0100 Subject: [PATCH] New Jsuites v3 compatibility. --- dist/jexcel.css | 1 + dist/jexcel.js | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dist/jexcel.css b/dist/jexcel.css index 78bf00e0..2733caa6 100644 --- a/dist/jexcel.css +++ b/dist/jexcel.css @@ -7,6 +7,7 @@ padding-right:2px; box-sizing: border-box; overscroll-behavior: contain; + outline: none; } .jexcel_container.fullscreen { diff --git a/dist/jexcel.js b/dist/jexcel.js index 4bb5b48e..236d6bdc 100644 --- a/dist/jexcel.js +++ b/dist/jexcel.js @@ -1,5 +1,5 @@ /** - * jExcel v4.2.2 + * jExcel v4.2.3 * * Author: Paul Hodel * Website: https://bossanova.uk/jexcel/ @@ -232,7 +232,7 @@ noCellsSelected: 'No cells selected', }, // About message - about:"jExcel CE Spreadsheet\nVersion 4.2.2\nAuthor: Paul Hodel \nWebsite: https://bossanova.uk/jexcel/v3", + about:"jExcel CE Spreadsheet\nVersion 4.2.3\nAuthor: Paul Hodel \nWebsite: https://bossanova.uk/jexcel/v3", }; // Loading initial configuration from user @@ -1819,10 +1819,16 @@ console.log(ret); var source = obj.options.columns[x].source; } + // Do not change the original source + var data = []; + for (var j = 0; j < source.length; j++) { + data.push(source[j]); + } + // Create editor var editor = createEditor('div'); var options = { - data: source, + data: data, multiple: obj.options.columns[x].multiple ? true : false, autocomplete: obj.options.columns[x].autocomplete || obj.options.columns[x].type == 'autocomplete' ? true : false, opened:true, @@ -5871,7 +5877,7 @@ console.log(ret); // IE Compatibility if (window.navigator && window.navigator.msSaveOrOpenBlob) { - window.navigator.msSaveOrOpenBlob(blob, options.csvFileName + '.csv'); + window.navigator.msSaveOrOpenBlob(blob, obj.options.csvFileName + '.csv'); } else { // Download element var pom = document.createElement('a');