Commit 4022f3e2 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47083 954022d7-b5bf-4e40-9824-e11837661b57
parent ecf7a521
...@@ -800,25 +800,26 @@ ...@@ -800,25 +800,26 @@
var oCellInfo = api.asc_getCellInfo(); var oCellInfo = api.asc_getCellInfo();
oTmpHyperlinkObj = oCellInfo.asc_getHyperlink(); oTmpHyperlinkObj = oCellInfo.asc_getHyperlink();
$("#addHyperlink_text").val(oTmpHyperlinkObj.asc_getText()); var oHyperText = $("#addHyperlink_text");
var oSelect = $("#addHyperlink_she"); var oSelect = $("#addHyperlink_she");
oSelect.empty(); oSelect.empty();
for (var i = 0; i < $("#ws-navigation .tabs .tab-name").length; i++) for (var i = 0; i < $("#ws-navigation .tabs .tab-name").length; i++)
oSelect.append("<option>" + $("#ws-navigation .tabs .tab-name")[i].textContent + "</option>"); oSelect.append("<option>" + $("#ws-navigation .tabs .tab-name")[i].textContent + "</option>");
if (null == oTmpHyperlinkObj) { if (null == oTmpHyperlinkObj) {
oHyperText.val(oCellInfo.asc_getText());
toggleHyperlinkDialog(true); toggleHyperlinkDialog(true);
$("#addHyperlink_url").val(""); $("#addHyperlink_url").val("");
$("#addHyperlink_ran").val("A1"); $("#addHyperlink_ran").val("A1");
} }
else { else {
oHyperText.val(oTmpHyperlinkObj.asc_getText());
if (c_oAscHyperlinkType.WebLink === oTmpHyperlinkObj.asc_getType()) { if (c_oAscHyperlinkType.WebLink === oTmpHyperlinkObj.asc_getType()) {
toggleHyperlinkDialog(true); toggleHyperlinkDialog(true);
$("#addHyperlink_url").val(oTmpHyperlinkObj.asc_getHyperlinkUrl()); $("#addHyperlink_url").val(oTmpHyperlinkObj.asc_getHyperlinkUrl());
} }
else if (c_oAscHyperlinkType.RangeLink === oTmpHyperlinkObj.asc_getType()) { else if (c_oAscHyperlinkType.RangeLink === oTmpHyperlinkObj.asc_getType()) {
toggleHyperlinkDialog(false); toggleHyperlinkDialog(false);
$("#addHyperlink_she").val(oTmpHyperlinkObj.asc_getSheet()); oSelect.val(oTmpHyperlinkObj.asc_getSheet());
$("#addHyperlink_ran").val(oTmpHyperlinkObj.asc_getRange()); $("#addHyperlink_ran").val(oTmpHyperlinkObj.asc_getRange());
} }
} }
......
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