[desktop] added 'themes' feature for editor
This commit is contained in:
parent
683a87fbe5
commit
203496dca5
|
@ -41,12 +41,15 @@ define([
|
||||||
], function () {
|
], function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var native = window.AscDesktopEditor;
|
var features = {
|
||||||
!!native && native.execCommand('webapps:features', JSON.stringify({
|
|
||||||
version: '{{PRODUCT_VERSION}}',
|
version: '{{PRODUCT_VERSION}}',
|
||||||
eventloading: true,
|
eventloading: true,
|
||||||
titlebuttons: true
|
titlebuttons: true,
|
||||||
}));
|
uithemes: true
|
||||||
|
};
|
||||||
|
|
||||||
|
var native = window.AscDesktopEditor;
|
||||||
|
!!native && native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
|
||||||
var Desktop = function () {
|
var Desktop = function () {
|
||||||
var config = {version:'{{PRODUCT_VERSION}}'};
|
var config = {version:'{{PRODUCT_VERSION}}'};
|
||||||
|
@ -134,7 +137,7 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
native.execCommand('webapps:features', JSON.stringify({version: config.version, eventloading:true, titlebuttons:true}));
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
|
||||||
// hide mask for modal window
|
// hide mask for modal window
|
||||||
var style = document.createElement('style');
|
var style = document.createElement('style');
|
||||||
|
@ -196,8 +199,9 @@ define([
|
||||||
});
|
});
|
||||||
|
|
||||||
Common.NotificationCenter.on('app:face', function (mode) {
|
Common.NotificationCenter.on('app:face', function (mode) {
|
||||||
native.execCommand('webapps:features', JSON.stringify(
|
features.viewmode = !mode.isEdit;
|
||||||
{version: config.version, eventloading:true, titlebuttons:true, viewmode:!mode.isEdit, crypted:mode.isCrypted} ));
|
features.crypted = mode.isCrypted;
|
||||||
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
|
||||||
titlebuttons = {};
|
titlebuttons = {};
|
||||||
if ( mode.isEdit ) {
|
if ( mode.isEdit ) {
|
||||||
|
|
Loading…
Reference in a new issue