Skip to content

Commit

Permalink
Download Compability fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhodel authored and paulhodel committed Nov 9, 2019
1 parent ab8aecd commit 0d532fa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
34 changes: 29 additions & 5 deletions dist/jexcel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (c) jExcel v3.6.0
* (c) jExcel v3.6.1
*
* Author: Paul Hodel <[email protected]>
* Website: https://bossanova.uk/jexcel/
Expand Down Expand Up @@ -187,7 +187,7 @@ var jexcel = (function(el, options) {
noCellsSelected: 'No cells selected',
},
// About message
about:"jExcel CE Spreadsheet\nVersion 3.6.0\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://bossanova.uk/jexcel/v3",
about:"jExcel CE Spreadsheet\nVersion 3.6.1\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://bossanova.uk/jexcel/v3",
};

// Loading initial configuration from user
Expand Down Expand Up @@ -1652,6 +1652,16 @@ var jexcel = (function(el, options) {
return obj.records[y][x];
}

/**
* Get the cell object from coords
*
* @param object cell
* @return string value
*/
obj.getCellFromCoords = function(x, y) {
return obj.records[y][x].element;
}

/**
* Get label
*
Expand All @@ -1667,6 +1677,16 @@ var jexcel = (function(el, options) {
return obj.records[y][x].innerHTML;
}

/**
* Get labelfrom coords
*
* @param object cell
* @return string value
*/
obj.getLabelFromCoords = function(x, y) {
return obj.records[y][x].element.innerHTML;
}

/**
* Get the value from a cell
*
Expand Down Expand Up @@ -4386,7 +4406,7 @@ var jexcel = (function(el, options) {

// Convert formula to javascript
try {
evalstring += "function COLUMN() { return parseInt(x) + 1; }; function ROW() { return parseInt(y) + 1; };";
evalstring += "function COLUMN() { return parseInt(x) + 1; }; function ROW() { return parseInt(y) + 1; }; function CELL() { return parentId; };";

var res = eval(evalstring + expression.substr(1));
} catch (e) {
Expand Down Expand Up @@ -5342,11 +5362,15 @@ var jexcel = (function(el, options) {
}

// Keep data
if (obj.options.copyCompatibility == true) {
obj.data = strLabel;
} else {
obj.data = str;
}
// Keep non visible information
obj.hashString = obj.hash(obj.textarea.value);
obj.hashString = obj.hash(obj.data);

return str;
return obj.data;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"data-spreadsheet"
],
"dependencies": {
"jsuites": "^2.1.3"
"jsuites": "^2.2.0"
},
"main": "dist/jexcel.js",
"version": "3.5.0",
"version": "3.6.1",
"bugs": "https://github.com/paulhodel/jexcel/issues",
"homepage": "https://github.com/paulhodel/jexcel",
"docs": "https://bossanova.uk/jexcel",
Expand Down

0 comments on commit 0d532fa

Please sign in to comment.