diff options
| author | Kevin Baptiste <kba@odoo.com> | 2019-12-05 07:18:28 +0000 |
|---|---|---|
| committer | Kevin Baptiste <kba@odoo.com> | 2019-12-09 10:33:36 +0000 |
| commit | 6cbe824871da51af27ac5b2feb7ecc9fcd6b18d0 (patch) | |
| tree | 5e3300c274fdedb5f8a13e0dc964f89941e17538 /addons/web/static/src/js/core/dom.js | |
| parent | 78ae3da90213261071fdadb06cbb0507182303e2 (diff) | |
[REV] web: reverts update to fontawesome 5.11.2
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e.
closes odoo/odoo#41480
X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc
Related: odoo/enterprise#7110
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/core/dom.js')
| -rw-r--r-- | addons/web/static/src/js/core/dom.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/web/static/src/js/core/dom.js b/addons/web/static/src/js/core/dom.js index 56d889bce69..a61caf480e4 100644 --- a/addons/web/static/src/js/core/dom.js +++ b/addons/web/static/src/js/core/dom.js @@ -378,12 +378,9 @@ var dom = { var $button = $('<button/>', jQueryParams); if (options.icon) { - var isFontAwesome = options.icon.match(/(fa[brs]* )*(fa-(.+))/); - if (isFontAwesome) { - var faClass = (isFontAwesome[1] !== undefined ? isFontAwesome[1] : 'fas'); - var faIcon = isFontAwesome[2]; + if (options.icon.substr(0, 3) === 'fa-') { $button.append($('<i/>', { - class: faClass + ' fa-fw o_button_icon ' + faIcon + class: 'fa fa-fw o_button_icon ' + options.icon, })); } else { $button.append($('<img/>', { |
