summaryrefslogtreecommitdiff
path: root/addons/web_editor/static
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-08-06 17:44:09 +0200
committerChristophe Simonis <chs@odoo.com>2015-08-06 17:44:09 +0200
commit47f6b1bb329de7161970af4cb1f6c641e6c89efc (patch)
treef362a2e6d9f7273b8e58145b90233f10f1d79be6 /addons/web_editor/static
parent95ac2cfd10f66d1ad0d5a369f62ee8af72b6f7c8 (diff)
parent081f21eeecd37a3e2b397e5c2285ffa571e3e0dc (diff)
[MERGE] forward port of branch saas-6 up to 081f21e
Diffstat (limited to 'addons/web_editor/static')
-rw-r--r--addons/web_editor/static/src/js/rte.summernote.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js
index 1067576ad15..5b6b6d593e9 100644
--- a/addons/web_editor/static/src/js/rte.summernote.js
+++ b/addons/web_editor/static/src/js/rte.summernote.js
@@ -192,6 +192,8 @@ eventHandler.popover.button.update = function ($container, oStyle) {
fn_boutton_update.call(this, $container, oStyle);
+ $container.find('.note-color').removeClass("hidden");
+
if (oStyle.image) {
$container.find('[data-event]').parent().removeClass("active");
@@ -212,8 +214,6 @@ eventHandler.popover.button.update = function ($container, oStyle) {
$container.find('button[data-event="resizefa"][data-value="1"]').toggleClass("active", !$container.find('.active[data-event="resizefa"]').length);
$container.find('button[data-event="imageShape"][data-value="fa-spin"]').toggleClass("active", $(oStyle.image).hasClass("fa-spin"));
-
- $container.find('.note-color').removeClass("hidden");
} else {
@@ -228,7 +228,7 @@ eventHandler.popover.button.update = function ($container, oStyle) {
$container.find('button[data-event="resize"][data-value="0.25"]').toggleClass("active", width === "25%");
$container.find('button[data-event="imageShape"][data-value="shadow"]').toggleClass("active", $(oStyle.image).hasClass("shadow"));
-
+
if (!$(oStyle.image).is("img")) {
$container.find('.btn-group:has(button[data-event="imageShape"])').addClass("hidden");
}