Avoid list edit form being submitted (#3532)
This commit is contained in:
parent
ef166c2479
commit
a489cd6e20
1 changed files with 6 additions and 0 deletions
|
@ -2602,6 +2602,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;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue