[SSE mobile] Fix bug 41162
This commit is contained in:
parent
4d6f4c3354
commit
d3cc8c9976
|
@ -179,7 +179,10 @@ define([
|
||||||
case 'openlink':
|
case 'openlink':
|
||||||
var linkinfo = info.asc_getHyperlink();
|
var linkinfo = info.asc_getHyperlink();
|
||||||
if ( linkinfo.asc_getType() == Asc.c_oAscHyperlinkType.RangeLink ) {
|
if ( linkinfo.asc_getType() == Asc.c_oAscHyperlinkType.RangeLink ) {
|
||||||
/* not implemented in sdk */
|
var nameSheet = linkinfo.asc_getSheet();
|
||||||
|
var curActiveSheet = this.api.asc_getActiveWorksheetIndex();
|
||||||
|
me.api.asc_setWorksheetRange(linkinfo);
|
||||||
|
SSE.getController('Statusbar').onLinkWorksheetRange(nameSheet, curActiveSheet);
|
||||||
} else {
|
} else {
|
||||||
var url = linkinfo.asc_getHyperlinkUrl().replace(/\s/g, "%20");
|
var url = linkinfo.asc_getHyperlinkUrl().replace(/\s/g, "%20");
|
||||||
me.api.asc_getUrlType(url) > 0 && openLink(url);
|
me.api.asc_getUrlType(url) > 0 && openLink(url);
|
||||||
|
@ -359,8 +362,7 @@ define([
|
||||||
event: 'wrap'
|
event: 'wrap'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (cellinfo.asc_getHyperlink() && !cellinfo.asc_getFlags().asc_getMultiselect() &&
|
if (cellinfo.asc_getHyperlink() && !cellinfo.asc_getFlags().asc_getMultiselect()) {
|
||||||
cellinfo.asc_getHyperlink().asc_getType() == Asc.c_oAscHyperlinkType.WebLink) {
|
|
||||||
arrItems.push({
|
arrItems.push({
|
||||||
caption: me.menuOpenLink,
|
caption: me.menuOpenLink,
|
||||||
event: 'openlink'
|
event: 'openlink'
|
||||||
|
|
|
@ -493,6 +493,16 @@ define([
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onLinkWorksheetRange: function(nameSheet, prevSheet) {
|
||||||
|
var tab = this.sheets.findWhere({name: nameSheet});
|
||||||
|
var sdkIndex = tab.get('index');
|
||||||
|
if (sdkIndex !== prevSheet) {
|
||||||
|
var index = this.sheets.indexOf(tab);
|
||||||
|
this.statusbar.setActiveTab(index);
|
||||||
|
Common.NotificationCenter.trigger('sheet:active', sdkIndex);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
onAddTab: function () {
|
onAddTab: function () {
|
||||||
this.api.asc_closeCellEditor();
|
this.api.asc_closeCellEditor();
|
||||||
this.api.asc_addWorksheet(this.createSheetName());
|
this.api.asc_addWorksheet(this.createSheetName());
|
||||||
|
|
Loading…
Reference in a new issue