Skip to content

Commit 37bb62f

Browse files
committed
v3.4.4
1 parent c842025 commit 37bb62f

File tree

6 files changed

+41
-10
lines changed

6 files changed

+41
-10
lines changed

dist/jexcel.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (c) jExcel v3.4.1
2+
* (c) jExcel v3.4.4
33
*
44
* Author: Paul Hodel <[email protected]>
55
* Website: https://bossanova.uk/jexcel/

dist/jexcel.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (c) jExcel v3.4.3
2+
* (c) jExcel v3.4.4
33
*
44
* Author: Paul Hodel <[email protected]>
55
* Website: https://bossanova.uk/jexcel/
@@ -113,6 +113,7 @@ var jexcel = (function(el, options) {
113113
style:null,
114114
// Execute formulas
115115
parseFormulas:true,
116+
autoIncrement:true,
116117
// Event handles
117118
onload:null,
118119
onchange:null,
@@ -178,7 +179,7 @@ var jexcel = (function(el, options) {
178179
noCellsSelected: 'No cells selected',
179180
},
180181
// About message
181-
about:"jExcel CE Spreadsheet\nVersion 3.4.2\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://jexcel.net/v3",
182+
about:"jExcel CE Spreadsheet\nVersion 3.4.4\nAuthor: Paul Hodel <[email protected]>\nWebsite: https://jexcel.net/v3",
182183
};
183184

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

1939-
if (value && t0 == t1) {
1940+
if (value && t0 == t1 && obj.options.autoIncrement == true) {
19401941
if (obj.options.columns[i].type == 'text' || obj.options.columns[i].type == 'number') {
19411942
if ((''+value).substr(0,1) == '=') {
19421943
var tokens = value.match(/([A-Z]+[0-9]+)/g);
@@ -6273,6 +6274,9 @@ jexcel.keyDownControls = function(e) {
62736274
// Start edition
62746275
jexcel.current.openEditor(jexcel.current.records[rowId][columnId], true);
62756276
}
6277+
} else if (e.keyCode == 113) {
6278+
// Start edition with current content F2
6279+
jexcel.current.openEditor(jexcel.current.records[rowId][columnId], false);
62766280
} else if ((e.keyCode == 8) ||
62776281
(e.keyCode >= 48 && e.keyCode <= 57) ||
62786282
(e.keyCode >= 65 && e.keyCode <= 90) ||
@@ -6284,9 +6288,6 @@ jexcel.keyDownControls = function(e) {
62846288
if (jexcel.current.options.columns[columnId].type == 'calendar') {
62856289
e.preventDefault();
62866290
}
6287-
} else if (e.keyCode == 113) {
6288-
// Start edition with current content F2
6289-
jexcel.current.openEditor(jexcel.current.records[rowId][columnId], false);
62906291
}
62916292
}
62926293
}

dist/jexcel.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jexcel.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<html>
2+
<script src="dist/jexcel.js"></script>
3+
<link rel="stylesheet" href="dist/jexcel.css" type="text/css" />
4+
5+
<script src="https://bossanova.uk/jsuites/v2/jsuites.js"></script>
6+
<link rel="stylesheet" href="https://bossanova.uk/jsuites/v2/jsuites.css" type="text/css" />
7+
8+
<div id="spreadsheet"></div>
9+
10+
<script>
11+
var data = [
12+
[],
13+
[],
14+
];
15+
16+
jexcel(document.getElementById('spreadsheet'), {
17+
data:data,
18+
columns: [
19+
{ type: 'text' },
20+
{ type: 'text' },
21+
{ type: 'text' },
22+
{ type: 'text' },
23+
{ type: 'text' },
24+
{ type: 'text' },
25+
{ type: 'text' },
26+
],
27+
minDimensions:[5,5]
28+
});
29+
</script>
30+
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"jsuites": "^2.1.3"
3939
},
4040
"main": "dist/jexcel.js",
41-
"version": "3.4.0",
41+
"version": "3.4.4",
4242
"bugs": "https://github.com/paulhodel/jexcel/issues",
4343
"homepage": "https://github.com/paulhodel/jexcel",
4444
"docs": "https://bossanova.uk/jexcel",

0 commit comments

Comments
 (0)