summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2014-02-27 15:00:43 +0100
committerChristophe Matthieu <chm@openerp.com>2014-02-27 15:00:43 +0100
commitd96cf8c54ca2e81c9401e4e3658bdd26313a25a3 (patch)
tree58f26c12e5eda4752fa4473c6309bfaeb7ac53ee /addons/website/static/src/js/website.editor.js
parent6a9d3326dbef5e34c3dd0896a20bc41ba2fa17d4 (diff)
[FIX] website: editor: can not edit a label in edit mode, must prevent the default click
bzr revid: chm@openerp.com-20140227140043-8iko13704pci9823
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js4
1 files changed, 4 insertions, 0 deletions
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();