summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/lib/summernote/src/js/EventHandler.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-03-18 20:50:42 +0100
committerChristophe Matthieu <chm@odoo.com>2015-07-10 17:00:14 +0200
commit7f2977183321958a5d0af1e6210eef955497b89a (patch)
tree28815a44b4b20681a0de352aaf3345c58c72e980 /addons/web_editor/static/lib/summernote/src/js/EventHandler.js
parent9221eb5b6df489cb3b345ca3c91cf5fe197c7286 (diff)
[FIX] summernote: wrong history managment fixed to use in normal field editor
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js/EventHandler.js')
-rw-r--r--addons/web_editor/static/lib/summernote/src/js/EventHandler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/lib/summernote/src/js/EventHandler.js b/addons/web_editor/static/lib/summernote/src/js/EventHandler.js
index fe9eaf334f2..068ceff735f 100644
--- a/addons/web_editor/static/lib/summernote/src/js/EventHandler.js
+++ b/addons/web_editor/static/lib/summernote/src/js/EventHandler.js
@@ -397,7 +397,7 @@ define([
var hToolbarAndPopoverClick = function (event) {
var $btn = $(event.target).closest('[data-event]');
- if ($btn.length) {
+ if ($btn.length && !$btn.is(':disabled')) {
var eventName = $btn.attr('data-event'),
value = $btn.attr('data-value'),
hide = $btn.attr('data-hide');