summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-11-04 10:40:43 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-11-04 10:45:08 (GMT)
commitf0b5b64a5531bac639cb043fdd68d3ad686d8e96 (patch)
tree0308236717193aff799d59a158b0e3355c634dcb
parent4b5a6c6249430cbd8e4c2a67e1f123397643b89e (diff)
downloadroundcubemail-plugins-kolab-f0b5b64a5531bac639cb043fdd68d3ad686d8e96.tar.gz
Avoid list edit form being submitted (#3532)
-rw-r--r--plugins/tasklist/tasklist.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/tasklist/tasklist.js b/plugins/tasklist/tasklist.js
index e9429e2..6027ebd 100644
--- a/plugins/tasklist/tasklist.js
+++ b/plugins/tasklist/tasklist.js
@@ -1697,6 +1697,12 @@ function rcube_tasklist_ui(settings)
name = $('#taskedit-tasklistame').prop('disabled', list.norename||false).val(list.editname || list.name);
alarms = $('#taskedit-showalarms').prop('checked', list.showalarms).get(0);
name.select();
+
+ // suppress form submission with <Enter>
+ editform.on('submit', function(e) {
+ e.preventDefault();
+ return false;
+ });
}
});