Commit fc54ddff authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49811 954022d7-b5bf-4e40-9824-e11837661b57
parent 22002e41
...@@ -1934,20 +1934,21 @@ ...@@ -1934,20 +1934,21 @@
return res.length > 0 ? res.join(",") : ""; return res.length > 0 ? res.join(",") : "";
} }
var hyperlink = cell.getHyperlink();
for (res = [], i = 0; i < val.length; ++i) { for (res = [], i = 0; i < val.length; ++i) {
if(val[i] && val[i].format && val[i].format.skip) if(val[i] && val[i].format && val[i].format.skip)
continue; continue;
if(cell == undefined || (cell != undefined && (cell.getHyperlink() == null || (cell.getHyperlink() != null && cell.getHyperlink().Location != null)))) if(cell == undefined || (cell != undefined && (hyperlink == null || (hyperlink != null && hyperlink.Location != null))))
span = doc.createElement("SPAN"); span = doc.createElement("SPAN");
else else
{ {
span = doc.createElement("A"); span = doc.createElement("A");
if(cell.getHyperlink().Hyperlink != null) if(hyperlink.Hyperlink != null)
span.href = cell.getHyperlink().Hyperlink; span.href = hyperlink.Hyperlink;
else if(cell.getHyperlink().Location != null) else if(hyperlink.Location != null)
span.href = "#" + cell.getHyperlink().Location; span.href = "#" + hyperlink.Location;
if(cell.getHyperlink().Tooltip != null) if(hyperlink.Tooltip != null)
span.title = cell.getHyperlink().Tooltip; span.title = hyperlink.Tooltip;
} }
if( val[i].sFormula ){ if( val[i].sFormula ){
span.textContent = "="+val[i].sFormula; span.textContent = "="+val[i].sFormula;
......
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