Commit 5409f0fc authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete documentTitleWithoutExtention, documentOrigin, rData

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64739 954022d7-b5bf-4e40-9824-e11837661b57
parent 50176352
...@@ -54,14 +54,12 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -54,14 +54,12 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.documentUrl = "null"; this.documentUrl = "null";
this.documentUrlChanges = null; this.documentUrlChanges = null;
this.documentTitle = "null"; this.documentTitle = "null";
this.documentTitleWithoutExtention = "null";
this.documentFormat = "null"; this.documentFormat = "null";
this.documentVKey = null; this.documentVKey = null;
this.documentFormatSave = c_oAscFileType.XLSX; this.documentFormatSave = c_oAscFileType.XLSX;
this.chartEditor = undefined; this.chartEditor = undefined;
this.documentOpenOptions = undefined; // Опции при открытии (пока только опции для CSV) this.documentOpenOptions = undefined; // Опции при открытии (пока только опции для CSV)
this.documentCallbackUrl = undefined; // Ссылка для отправления информации о документе this.documentCallbackUrl = undefined; // Ссылка для отправления информации о документе
this.documentOrigin = "";
this.DocInfo = null; this.DocInfo = null;
// объекты, нужные для отправки в тулбар (шрифты, стили) // объекты, нужные для отправки в тулбар (шрифты, стили)
...@@ -439,16 +437,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -439,16 +437,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
// } // }
// } // }
var nIndex = -1;
if (this.documentTitle) {
nIndex = this.documentTitle.lastIndexOf(".");
}
if (-1 != nIndex) {
this.documentTitleWithoutExtention = this.documentTitle.substring(0, nIndex);
} else {
this.documentTitleWithoutExtention = this.documentTitle;
}
// Выставляем пользователя // Выставляем пользователя
this.User = new asc.asc_CUser(); this.User = new asc.asc_CUser();
this.User.asc_setId(this.DocInfo["UserId"]); this.User.asc_setId(this.DocInfo["UserId"]);
...@@ -458,15 +446,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -458,15 +446,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
if (undefined !== window["AscDesktopEditor"]) { if (undefined !== window["AscDesktopEditor"]) {
window["AscDesktopEditor"]["SetDocumentName"](this.documentTitle); window["AscDesktopEditor"]["SetDocumentName"](this.documentTitle);
} }
var sProtocol = window.location.protocol;
var sHost = window.location.host;
this.documentOrigin = "";
if (sProtocol && "" != sProtocol) {
this.documentOrigin = sProtocol + "//" + sHost;
} else {
this.documentOrigin = sHost;
}
}; };
spreadsheet_api.prototype.asc_getLocaleExample = function(val, number, date) { spreadsheet_api.prototype.asc_getLocaleExample = function(val, number, date) {
var res = ''; var res = '';
...@@ -920,7 +899,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -920,7 +899,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
return; return;
} }
var t = this, rData, codePageCsv, delimiterCsv; var t = this, codePageCsv, delimiterCsv;
switch (result["type"]) { switch (result["type"]) {
case "updateversion": case "updateversion":
if (this.asc_getViewerMode()) { if (this.asc_getViewerMode()) {
......
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