From d96cf8c54ca2e81c9401e4e3658bdd26313a25a3 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 27 Feb 2014 15:00:43 +0100 Subject: [PATCH] [FIX] website: editor: can not edit a label in edit mode, must prevent the default click bzr revid: chm@openerp.com-20140227140043-8iko13704pci9823 --- addons/website/static/src/js/website.editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 0ec881165b4..303a7ee79d4 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -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();