projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2404255
)
Don't save event/task if hitting enter in textarea.
author
Jan Schneider
<jan@horde.org>
Mon, 17 May 2010 16:41:28 +0000
(18:41 +0200)
committer
Jan Schneider
<jan@horde.org>
Mon, 17 May 2010 23:35:44 +0000
(
01:35
+0200)
kronolith/js/kronolith.js
patch
|
blob
|
history
diff --git
a/kronolith/js/kronolith.js
b/kronolith/js/kronolith.js
index
be44a64
..
3b970a6
100644
(file)
--- a/
kronolith/js/kronolith.js
+++ b/
kronolith/js/kronolith.js
@@
-3441,13
+3441,17
@@
KronolithCore = {
case Event.KEY_RETURN:
switch (form.identify()) {
case 'kronolithEventForm':
- this.saveEvent();
- e.stop();
+ if (e.element().tagName != 'TEXTAREA') {
+ this.saveEvent();
+ e.stop();
+ }
break;
case 'kronolithTaskForm':
- this.saveTask();
- e.stop();
+ if (e.element().tagName != 'TEXTAREA') {
+ this.saveTask();
+ e.stop();
+ }
break;
case 'kronolithSearchForm':