Commit bea219dc authored by Alexander.Trofimov's avatar Alexander.Trofimov

add read build version from server

add method asc_getBuildVersion
parent f6216e18
......@@ -41,6 +41,7 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () {
oResult.setCanBranding(Asc.c_oLicenseResult.Error !== type); // Для тех, у кого есть лицензия, branding доступен
oResult.setIsLight(this.licenseResult['light']);
oResult.setIsTrial(this.licenseResult['trial']);
oResult.setBuildVersion(this.licenseResult['buildVersion']);
}
this.sendEvent('asc_onGetEditorPermissions', oResult);
}
......
......@@ -128,6 +128,7 @@
this.isAutosaveEnable = true;
this.AutosaveMinInterval = 300;
this.isAnalyticsEnable = false;
this.buildVersion = null;
return this;
}
......@@ -158,6 +159,9 @@
asc_CAscEditorPermissions.prototype.asc_getTrial = function () {
return this.trial;
};
asc_CAscEditorPermissions.prototype.asc_getBuildVersion = function () {
return this.buildVersion;
};
asc_CAscEditorPermissions.prototype.setLicenseType = function (v) {
this.licenseType = v;
......@@ -171,6 +175,9 @@
asc_CAscEditorPermissions.prototype.setIsTrial = function (v) {
this.trial = v;
};
asc_CAscEditorPermissions.prototype.setBuildVersion = function (v) {
this.buildVersion = v;
};
/** @constructor */
function asc_ValAxisSettings() {
......@@ -2694,6 +2701,7 @@
prot["asc_getIsAnalyticsEnable"] = prot.asc_getIsAnalyticsEnable;
prot["asc_getIsLight"] = prot.asc_getIsLight;
prot["asc_getTrial"] = prot.asc_getTrial;
prot["asc_getBuildVersion"] = prot.asc_getBuildVersion;
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