Skip to content

Commit

Permalink
v3.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pphod committed Aug 21, 2019
1 parent c842025 commit 37bb62f
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/jexcel.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (c) jExcel v3.4.1
* (c) jExcel v3.4.4
*
* Author: Paul Hodel <[email protected]>
* Website: https://bossanova.uk/jexcel/
Expand Down
13 changes: 7 additions & 6 deletions dist/jexcel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (c) jExcel v3.4.3
* (c) jExcel v3.4.4
*
* Author: Paul Hodel <[email protected]>
* Website: https://bossanova.uk/jexcel/
Expand Down Expand Up @@ -113,6 +113,7 @@ var jexcel = (function(el, options) {
style:null,
// Execute formulas
parseFormulas:true,
autoIncrement:true,
// Event handles
onload:null,
onchange:null,
Expand Down Expand Up @@ -178,7 +179,7 @@ var jexcel = (function(el, options) {
noCellsSelected: 'No cells selected',
},
// About message
about:"jExcel CE Spreadsheet\nVersion 3.4.2\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://jexcel.net/v3",
about:"jExcel CE Spreadsheet\nVersion 3.4.4\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://jexcel.net/v3",
};

// Loading initial configuration from user
Expand Down Expand Up @@ -1936,7 +1937,7 @@ var jexcel = (function(el, options) {
var value = data[posy][posx];
}

if (value && t0 == t1) {
if (value && t0 == t1 && obj.options.autoIncrement == true) {
if (obj.options.columns[i].type == 'text' || obj.options.columns[i].type == 'number') {
if ((''+value).substr(0,1) == '=') {
var tokens = value.match(/([A-Z]+[0-9]+)/g);
Expand Down Expand Up @@ -6273,6 +6274,9 @@ jexcel.keyDownControls = function(e) {
// Start edition
jexcel.current.openEditor(jexcel.current.records[rowId][columnId], true);
}
} else if (e.keyCode == 113) {
// Start edition with current content F2
jexcel.current.openEditor(jexcel.current.records[rowId][columnId], false);
} else if ((e.keyCode == 8) ||
(e.keyCode >= 48 && e.keyCode <= 57) ||
(e.keyCode >= 65 && e.keyCode <= 90) ||
Expand All @@ -6284,9 +6288,6 @@ jexcel.keyDownControls = function(e) {
if (jexcel.current.options.columns[columnId].type == 'calendar') {
e.preventDefault();
}
} else if (e.keyCode == 113) {
// Start edition with current content F2
jexcel.current.openEditor(jexcel.current.records[rowId][columnId], false);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/jexcel.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jexcel.min.js

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<html>
<script src="dist/jexcel.js"></script>
<link rel="stylesheet" href="dist/jexcel.css" type="text/css" />

<script src="https://bossanova.uk/jsuites/v2/jsuites.js"></script>
<link rel="stylesheet" href="https://bossanova.uk/jsuites/v2/jsuites.css" type="text/css" />

<div id="spreadsheet"></div>

<script>
var data = [
[],
[],
];

jexcel(document.getElementById('spreadsheet'), {
data:data,
columns: [
{ type: 'text' },
{ type: 'text' },
{ type: 'text' },
{ type: 'text' },
{ type: 'text' },
{ type: 'text' },
{ type: 'text' },
],
minDimensions:[5,5]
});
</script>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"jsuites": "^2.1.3"
},
"main": "dist/jexcel.js",
"version": "3.4.0",
"version": "3.4.4",
"bugs": "https://github.com/paulhodel/jexcel/issues",
"homepage": "https://github.com/paulhodel/jexcel",
"docs": "https://bossanova.uk/jexcel",
Expand Down

0 comments on commit 37bb62f

Please sign in to comment.