mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 03:19:32 +08:00
[common] fix for IE
This commit is contained in:
@ -878,13 +878,13 @@ define([
|
||||
if (!me.$el.find('svg.icon').length) {
|
||||
const re_icon_name = /btn-[^\s]+/.exec(me.iconCls);
|
||||
const icon_name = re_icon_name ? re_icon_name[0] : "null";
|
||||
const svg_icon = `<svg class="icon"><use class="zoom-int" href="#${icon_name}"></use></svg>`;
|
||||
const svg_icon = '<svg class="icon"><use class="zoom-int" href="#%iconname"></use></svg>'.replace('%iconname', icon_name);
|
||||
|
||||
me.$el.find('i.icon').after(svg_icon);
|
||||
}
|
||||
} else {
|
||||
if (!me.$el.find('i.icon')) {
|
||||
const png_icon = `<i class="icon ${me.iconCls}"> </i>`;
|
||||
const png_icon = '<i class="icon %cls"> </i>'.replace('%cls', me.iconCls);
|
||||
me.$el.find('svg.icon').after(png_icon);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user