Fix Bug 47277
This commit is contained in:
parent
c713710592
commit
1a644365a0
|
@ -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
|
||||||
}
|
}
|
||||||
})();
|
})();
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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/");
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue