Commit a1f0b418 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Проверка для лицензии на null

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53714 954022d7-b5bf-4e40-9824-e11837661b57
parent 79d2ba84
......@@ -1359,8 +1359,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
_onGetLicense: function (response) {
if (null != response && "getlicense" == response.type){
var oSettings = JSON.parse(response.data);
var oLicense = new asc_CAscLicense(oSettings);
var oLicense = (null != oSettings) ? new asc_CAscLicense(oSettings) : null;
this.handlers.trigger("asc_onGetLicense", oLicense);
}
},
......
......@@ -780,8 +780,7 @@ asc_docs_api.prototype.asc_getEditorPermissionsCallback = function(incomeObject)
asc_docs_api.prototype._onGetLicense = function (response) {
if (null != response && "getlicense" == response.type){
var oSettings = JSON.parse(response.data);
var oLicense = new window["Asc"].asc_CAscLicense(oSettings);
var oLicense = (null != oSettings) ? new window["Asc"].asc_CAscLicense(oSettings) : null;
this.asc_fireCallback("asc_onGetLicense", oLicense);
}
};
......
......@@ -914,8 +914,7 @@ asc_docs_api.prototype.asc_getEditorPermissionsCallback = function(incomeObject)
asc_docs_api.prototype._onGetLicense = function (response) {
if (null != response && "getlicense" == response.type){
var oSettings = JSON.parse(response.data);
var oLicense = new window["Asc"].asc_CAscLicense(oSettings);
var oLicense = (null != oSettings) ? new window["Asc"].asc_CAscLicense(oSettings) : null;
this.asc_fireCallback("asc_onGetLicense", oLicense);
}
};
......
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