[FIX] website: editor: can not edit a label in edit mode, must prevent the default click

bzr revid: chm@openerp.com-20140227140043-8iko13704pci9823
This commit is contained in:
Christophe Matthieu 2014-02-27 15:00:43 +01:00
parent 6a9d3326db
commit d96cf8c54c
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@
website.form(this.pathname, 'POST');
});
$(document).on('click', '.cke_editable label', function (ev) {
ev.preventDefault();
});
$(document).on('submit', '.cke_editable form', function (ev) {
// Disable form submition in editable mode
ev.preventDefault();