Commit 01dc7c71 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Для тестовых примеров.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48597 954022d7-b5bf-4e40-9824-e11837661b57
parent 5f9adfe6
...@@ -358,7 +358,9 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -358,7 +358,9 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.chartEditor = c_DocInfo["ChartEditor"]; this.chartEditor = c_DocInfo["ChartEditor"];
this.documentOpenOptions = c_DocInfo["Options"]; this.documentOpenOptions = c_DocInfo["Options"];
var nIndex = this.documentTitle.lastIndexOf("."); var nIndex = -1;
if(this.documentTitle)
nIndex = this.documentTitle.lastIndexOf(".");
if(-1 != nIndex) if(-1 != nIndex)
this.documentTitleWithoutExtention = this.documentTitle.substring(0, nIndex); this.documentTitleWithoutExtention = this.documentTitle.substring(0, nIndex);
else else
......
...@@ -373,7 +373,9 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo) ...@@ -373,7 +373,9 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
documentTitle = c_DocInfo.get_Title(); documentTitle = c_DocInfo.get_Title();
documentFormat = c_DocInfo.get_Format(); documentFormat = c_DocInfo.get_Format();
var nIndex = documentTitle.lastIndexOf("."); var nIndex = -1;
if(documentTitle)
nIndex = documentTitle.lastIndexOf(".");
if(-1 != nIndex) if(-1 != nIndex)
documentTitleWithoutExtention = documentTitle.substring(0, nIndex); documentTitleWithoutExtention = documentTitle.substring(0, nIndex);
else else
......
...@@ -773,7 +773,9 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo) ...@@ -773,7 +773,9 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
documentTitle = this.DocInfo.get_Title(); documentTitle = this.DocInfo.get_Title();
documentFormat = this.DocInfo.get_Format(); documentFormat = this.DocInfo.get_Format();
var nIndex = documentTitle.lastIndexOf("."); var nIndex = -1;
if(documentTitle)
nIndex = documentTitle.lastIndexOf(".");
if(-1 != nIndex) if(-1 != nIndex)
documentTitleWithoutExtention = documentTitle.substring(0, nIndex); documentTitleWithoutExtention = documentTitle.substring(0, nIndex);
else else
......
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