projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22128e
)
ignore double clicks on cells in edit mode
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 14 Jan 2011 14:27:48 +0000
(15:27 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 14 Jan 2011 14:27:48 +0000
(15:27 +0100)
public/edit_table.js
patch
|
blob
|
history
diff --git
a/public/edit_table.js
b/public/edit_table.js
index
5c8d00d
..
3fc390f
100644
(file)
--- a/
public/edit_table.js
+++ b/
public/edit_table.js
@@
-47,6
+47,9
@@
var cell_click = function(event) {
, event
, $(this).text()
);
+
+ if ( $(this).find('textarea').length ) return; // allready editing
+
var new_content = $(this).text() // we don't want para markup
.replace(/^[ \n\r]+/,'')
.replace(/[ \n\r]+$/,'')