Skip to content

Commit

Permalink
New Jsuites v3 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
pphod committed Jun 16, 2020
1 parent e77fe83 commit e707d3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/jexcel.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
padding-right:2px;
box-sizing: border-box;
overscroll-behavior: contain;
outline: none;
}

.jexcel_container.fullscreen {
Expand Down
14 changes: 10 additions & 4 deletions dist/jexcel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* jExcel v4.2.2
* jExcel v4.2.3
*
* Author: Paul Hodel <[email protected]>
* Website: https://bossanova.uk/jexcel/
Expand Down Expand Up @@ -232,7 +232,7 @@
noCellsSelected: 'No cells selected',
},
// About message
about:"jExcel CE Spreadsheet\nVersion 4.2.2\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://bossanova.uk/jexcel/v3",
about:"jExcel CE Spreadsheet\nVersion 4.2.3\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://bossanova.uk/jexcel/v3",
};

// Loading initial configuration from user
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit e707d3d

Please sign in to comment.