[FIX] Disable form submition in editable mode

bzr revid: fme@openerp.com-20131204104225-2s3jp325731mqd92
This commit is contained in:
Fabien Meghazi 2013-12-04 11:42:25 +01:00
parent e2f37e7369
commit 31381c1469
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@
website.form(this.pathname, 'POST');
});
$(document).on('submit', '.cke_editable form', function (ev) {
// Disable form submition in editable mode
ev.preventDefault();
});
$(document).on('hide.bs.dropdown', '.dropdown', function (ev) {
// Prevent dropdown closing when a contenteditable children is focused
if (ev.originalEvent