projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76da32f
)
correctly check if x and y are defined
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 22 Jan 2018 12:45:58 +0000
(13:45 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 22 Jan 2018 12:45:58 +0000
(13:45 +0100)
public/edit_table.js
patch
|
blob
|
history
diff --git
a/public/edit_table.js
b/public/edit_table.js
index
9914a3c
..
f57f833
100644
(file)
--- a/
public/edit_table.js
+++ b/
public/edit_table.js
@@
-16,7
+16,7
@@
var cell_blur = function() {
var x = $(this).parent().index();
var y = $(this).parent().parent().index();
- if (
! x || ! y
) {
+ if (
x == null || y == null
) {
console.error('no x ', x, ' or y ', y, ' defined');
return;
}