Fix Bug 47277

This commit is contained in:
Julia Radzhabova 2020-11-06 12:00:43 +03:00
parent c713710592
commit 1a644365a0
4 changed files with 44 additions and 35 deletions

View file

@ -129,6 +129,7 @@ Common.UI.FocusManager = new(function() {
} }
}; };
var _init = function() {
Common.NotificationCenter.on({ Common.NotificationCenter.on({
'modal:show': function(e){ 'modal:show': function(e){
if (e && e.cid) { if (e && e.cid) {
@ -166,8 +167,10 @@ Common.UI.FocusManager = new(function() {
} }
} }
}); });
};
return { return {
init: _init,
add: _add add: _add
} }
})(); })();

View file

@ -170,6 +170,8 @@ define([
window["flat_desine"] = true; window["flat_desine"] = true;
this.api = this.getApplication().getController('Viewport').getApi(); this.api = this.getApplication().getController('Viewport').getApi();
Common.UI.FocusManager.init();
if (this.api){ if (this.api){
this.api.SetDrawingFreeze(true); this.api.SetDrawingFreeze(true);

View file

@ -155,6 +155,8 @@ define([
window["flat_desine"] = true; window["flat_desine"] = true;
this.api = this.getApplication().getController('Viewport').getApi(); this.api = this.getApplication().getController('Viewport').getApi();
Common.UI.FocusManager.init();
if (this.api){ if (this.api){
this.api.SetDrawingFreeze(true); this.api.SetDrawingFreeze(true);
this.api.SetThemesPath("../../../../sdkjs/slide/themes/"); this.api.SetThemesPath("../../../../sdkjs/slide/themes/");

View file

@ -165,6 +165,8 @@ define([
// Initialize api // Initialize api
this.api = this.getApplication().getController('Viewport').getApi(); this.api = this.getApplication().getController('Viewport').getApi();
Common.UI.FocusManager.init();
var value = Common.localStorage.getBool("sse-settings-cachemode", true); var value = Common.localStorage.getBool("sse-settings-cachemode", true);
Common.Utils.InternalSettings.set("sse-settings-cachemode", value); Common.Utils.InternalSettings.set("sse-settings-cachemode", value);
this.api.asc_setDefaultBlitMode(!!value); this.api.asc_setDefaultBlitMode(!!value);