Commit 4be74e88 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add trial (developer mode)

parent 2440e20b
......@@ -40,6 +40,7 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () {
oResult.setLicenseType(type);
oResult.setCanBranding(Asc.c_oLicenseResult.Error !== type); // Для тех, у кого есть лицензия, branding доступен
oResult.setIsLight(this.licenseResult['light']);
oResult.setIsTrial(this.licenseResult['trial']);
}
this.sendEvent('asc_onGetEditorPermissions', oResult);
}
......
......@@ -121,6 +121,7 @@
function asc_CAscEditorPermissions() {
this.licenseType = c_oLicenseResult.Error;
this.isLight = false;
this.trial = false;
this.canCoAuthoring = true;
this.canReaderMode = true;
this.canBranding = false;
......@@ -154,6 +155,9 @@
asc_CAscEditorPermissions.prototype.asc_getIsLight = function () {
return this.isLight;
};
asc_CAscEditorPermissions.prototype.asc_getTrial = function () {
return this.trial;
};
asc_CAscEditorPermissions.prototype.setLicenseType = function (v) {
this.licenseType = v;
......@@ -164,6 +168,9 @@
asc_CAscEditorPermissions.prototype.setIsLight = function (v) {
this.isLight = v;
};
asc_CAscEditorPermissions.prototype.setIsTrial = function (v) {
this.trial = v;
};
/** @constructor */
function asc_ValAxisSettings() {
......@@ -2686,6 +2693,7 @@
prot["asc_getAutosaveMinInterval"] = prot.asc_getAutosaveMinInterval;
prot["asc_getIsAnalyticsEnable"] = prot.asc_getIsAnalyticsEnable;
prot["asc_getIsLight"] = prot.asc_getIsLight;
prot["asc_getTrial"] = prot.asc_getTrial;
window["AscCommon"].asc_ValAxisSettings = asc_ValAxisSettings;
prot = asc_ValAxisSettings.prototype;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment