summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/lib/summernote/src/js/module
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-05-22 13:17:47 +0200
committerqsm-odoo <qsm@odoo.com>2018-07-27 12:36:54 +0200
commit443735949e799bcb362f87a6072c4baf46088022 (patch)
treea04c96fcbc1655b0f2135b18d1d9add2c2a206b5 /addons/web_editor/static/lib/summernote/src/js/module
parentb437808f6696a8d202dac079fe8e40ade9779704 (diff)
[REF] *: BS4, replace img-rounded/img-circle classes
'img-rounded' -> 'rounded' 'img-circle' -> 'rounded-circle'
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js/module')
-rw-r--r--addons/web_editor/static/lib/summernote/src/js/module/Button.js10
-rw-r--r--addons/web_editor/static/lib/summernote/src/js/module/Editor.js2
2 files changed, 6 insertions, 6 deletions
diff --git a/addons/web_editor/static/lib/summernote/src/js/module/Button.js b/addons/web_editor/static/lib/summernote/src/js/module/Button.js
index b7a1614d4db..59e3fa19f63 100644
--- a/addons/web_editor/static/lib/summernote/src/js/module/Button.js
+++ b/addons/web_editor/static/lib/summernote/src/js/module/Button.js
@@ -43,17 +43,17 @@ define([
if (styleInfo.image) {
var $img = $(styleInfo.image);
- btnState('button[data-event="imageShape"][data-value="img-rounded"]', function () {
- return $img.hasClass('img-rounded');
+ btnState('button[data-event="imageShape"][data-value="rounded"]', function () {
+ return $img.hasClass('rounded');
});
- btnState('button[data-event="imageShape"][data-value="img-circle"]', function () {
- return $img.hasClass('img-circle');
+ btnState('button[data-event="imageShape"][data-value="rounded-circle"]', function () {
+ return $img.hasClass('rounded-circle');
});
btnState('button[data-event="imageShape"][data-value="img-thumbnail"]', function () {
return $img.hasClass('img-thumbnail');
});
btnState('button[data-event="imageShape"]:not([data-value])', function () {
- return !$img.is('.img-rounded, .img-circle, .img-thumbnail');
+ return !$img.is('.rounded, .rounded-circle, .img-thumbnail');
});
var imgFloat = $img.css('float');
diff --git a/addons/web_editor/static/lib/summernote/src/js/module/Editor.js b/addons/web_editor/static/lib/summernote/src/js/module/Editor.js
index 99947c346cf..50bb9857fdf 100644
--- a/addons/web_editor/static/lib/summernote/src/js/module/Editor.js
+++ b/addons/web_editor/static/lib/summernote/src/js/module/Editor.js
@@ -760,7 +760,7 @@ define([
this.imageShape = function ($editable, value, $target) {
beforeCommand($editable);
- $target.removeClass('img-rounded img-circle img-thumbnail');
+ $target.removeClass('rounded rounded-circle img-thumbnail');
if (value) {
$target.addClass(value);