Bug 43960: temporary fix for toolbar icons
This commit is contained in:
parent
0a9cbba0c0
commit
3e383721fb
|
@ -1057,6 +1057,11 @@ define([
|
||||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
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)
|
if (this.appOptions.canAnalytics && false)
|
||||||
Common.component.Analytics.initialize('UA-12442749-13', 'Document Editor');
|
Common.component.Analytics.initialize('UA-12442749-13', 'Document Editor');
|
||||||
|
|
||||||
|
|
|
@ -790,6 +790,11 @@ define([
|
||||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
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)
|
if (this.appOptions.canAnalytics && false)
|
||||||
Common.component.Analytics.initialize('UA-12442749-13', 'Presentation Editor');
|
Common.component.Analytics.initialize('UA-12442749-13', 'Presentation Editor');
|
||||||
|
|
||||||
|
|
|
@ -825,6 +825,12 @@ define([
|
||||||
documentHolderView.createDelayedElementsViewer();
|
documentHolderView.createDelayedElementsViewer();
|
||||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
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)
|
if (me.appOptions.canAnalytics && false)
|
||||||
Common.component.Analytics.initialize('UA-12442749-13', 'Spreadsheet Editor');
|
Common.component.Analytics.initialize('UA-12442749-13', 'Spreadsheet Editor');
|
||||||
|
|
Loading…
Reference in a new issue