Bug 43960: temporary fix for toolbar icons

This commit is contained in:
Julia Radzhabova 2020-01-31 16:39:24 +03:00 committed by Alexey Golubev
parent 0a9cbba0c0
commit 3e383721fb
3 changed files with 16 additions and 0 deletions

View file

@ -1057,6 +1057,11 @@ define([
Common.NotificationCenter.trigger('document:ready', 'main');
}
// TODO bug 43960
var dummyClass = ~~(1e6*Math.random());
$('.toolbar').prepend(Common.Utils.String.format('<div class="lazy-{0} x-huge"><div class="toolbar__icon" style="position: absolute; width: 1px; height: 1px;"></div>', dummyClass));
setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10);
if (this.appOptions.canAnalytics && false)
Common.component.Analytics.initialize('UA-12442749-13', 'Document Editor');

View file

@ -790,6 +790,11 @@ define([
Common.NotificationCenter.trigger('document:ready', 'main');
}
// TODO bug 43960
var dummyClass = ~~(1e6*Math.random());
$('.toolbar').prepend(Common.Utils.String.format('<div class="lazy-{0} x-huge"><div class="toolbar__icon" style="position: absolute; width: 1px; height: 1px;"></div>', dummyClass));
setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10);
if (this.appOptions.canAnalytics && false)
Common.component.Analytics.initialize('UA-12442749-13', 'Presentation Editor');

View file

@ -825,6 +825,12 @@ define([
documentHolderView.createDelayedElementsViewer();
Common.NotificationCenter.trigger('document:ready', 'main');
}
// TODO bug 43960
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram) {
var dummyClass = ~~(1e6*Math.random());
$('.toolbar').prepend(Common.Utils.String.format('<div class="lazy-{0} x-huge"><div class="toolbar__icon" style="position: absolute; width: 1px; height: 1px;"></div>', dummyClass));
setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10);
}
if (me.appOptions.canAnalytics && false)
Common.component.Analytics.initialize('UA-12442749-13', 'Spreadsheet Editor');