diff options
| author | Kevin Baptiste <kba@odoo.com> | 2019-08-12 07:18:23 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-11-28 10:05:12 +0000 |
| commit | ff1c35513aecef5fbc30f7c2f3834450e719714e (patch) | |
| tree | 8149f14df17095845e735d6cccaf9317a1f97af6 /addons/web_editor/static/src/js/editor/rte.summernote.js | |
| parent | 4c030311ada2ad19a2ee81b15544b7aed35b642b (diff) | |
[IMP] web: update to fontawesome 4.7.0 to 5.11.2
FontAwesome 5 introduced new names for some icons as described on
https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes
This commit replaces the old names to the new ones.
closes odoo/odoo#35826
Taskid: 2050241
Related: odoo/enterprise#5180
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/editor/rte.summernote.js')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/rte.summernote.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.summernote.js b/addons/web_editor/static/src/js/editor/rte.summernote.js index 913d35575ab..800cbf3829f 100644 --- a/addons/web_editor/static/src/js/editor/rte.summernote.js +++ b/addons/web_editor/static/src/js/editor/rte.summernote.js @@ -83,7 +83,7 @@ renderer.tplPopovers = function (lang, options) { //////////////// image popover // add center button for images - $(tplIconButton('fa fa-align-center', { + $(tplIconButton('fas fa-align-center', { title: _t('Center'), event: 'floatMe', value: 'center' @@ -101,14 +101,14 @@ renderer.tplPopovers = function (lang, options) { '<li><a class="dropdown-item" data-event="padding" href="#" data-value="large">'+_t('Large')+'</a></li>', '<li><a class="dropdown-item" data-event="padding" href="#" data-value="xl">'+_t('Xl')+'</a></li>', ]; - $(tplIconButton('fa fa-plus-square-o', { + $(tplIconButton('far fa-plus-square', { title: _t('Padding'), dropdown: tplDropdown(dropdown_content) })).appendTo($padding); // circle, boxed... options became toggled $imagePopover.find('[data-event="imageShape"]:not([data-value])').remove(); - var $button = $(tplIconButton('fa fa-sun-o', { + var $button = $(tplIconButton('far fa-sun', { title: _t('Shadow'), event: 'imageShape', value: 'shadow' @@ -116,7 +116,7 @@ renderer.tplPopovers = function (lang, options) { // add spin for fa var $spin = $('<div class="btn-group d-none only_fa"/>').insertAfter($button.parent()); - $(tplIconButton('fa fa-refresh', { + $(tplIconButton('fas fa-sync', { title: _t('Spin'), event: 'imageShape', value: 'fa-spin' @@ -139,16 +139,16 @@ renderer.tplPopovers = function (lang, options) { // show dialog box and delete var $imageprop = $('<div class="btn-group"/>'); $imageprop.appendTo($imagePopover.find('.popover-body')); - $(tplIconButton('fa fa-file-image-o', { + $(tplIconButton('far fa-file-image', { title: _t('Edit'), event: 'showImageDialog' })).appendTo($imageprop); - $(tplIconButton('fa fa-trash-o', { + $(tplIconButton('far fa-trash-alt', { title: _t('Remove'), event: 'delete' })).appendTo($imageprop); - $(tplIconButton('fa fa-crop', { + $(tplIconButton('fas fa-crop', { title: _t('Crop Image'), event: 'cropImage', })).insertAfter($imagePopover.find('[data-event="imageShape"][data-value="img-thumbnail"]')); @@ -165,7 +165,7 @@ renderer.tplPopovers = function (lang, options) { $linkPopover.find('.popover-body').append($airPopover.find(".note-history").clone()); - $linkPopover.find('button[data-event="showLinkDialog"] i').attr("class", "fa fa-link"); + $linkPopover.find('button[data-event="showLinkDialog"] i').attr("class", "fas fa-link"); $linkPopover.find('button[data-event="unlink"]').before($airPopover.find('button[data-event="showImageDialog"]').clone()); //////////////// text/air popover |
