[SSE] Fix bug 32282.
This commit is contained in:
parent
4dec00ebac
commit
278633279f
|
@ -960,7 +960,19 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiHyperlinkClick: function(url) {
|
onApiHyperlinkClick: function(url) {
|
||||||
if (url && this.api.asc_getUrlType(url)>0) {
|
if (!url) {
|
||||||
|
Common.UI.alert({
|
||||||
|
msg: this.errorInvalidLink,
|
||||||
|
title: this.notcriticalErrorTitle,
|
||||||
|
iconCls: 'warn',
|
||||||
|
buttons: ['ok'],
|
||||||
|
callback: _.bind(function(btn){
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', this.documentHolder);
|
||||||
|
}, this)
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.api.asc_getUrlType(url)>0) {
|
||||||
var newDocumentPage = window.open(url, '_blank');
|
var newDocumentPage = window.open(url, '_blank');
|
||||||
if (newDocumentPage)
|
if (newDocumentPage)
|
||||||
newDocumentPage.focus();
|
newDocumentPage.focus();
|
||||||
|
@ -1540,7 +1552,9 @@ define([
|
||||||
textChangeRowHeight : 'Row Height {0} points ({1} pixels)',
|
textChangeRowHeight : 'Row Height {0} points ({1} pixels)',
|
||||||
textInsertLeft : 'Insert Left',
|
textInsertLeft : 'Insert Left',
|
||||||
textInsertTop : 'Insert Top',
|
textInsertTop : 'Insert Top',
|
||||||
textSym : 'sym'
|
textSym : 'sym',
|
||||||
|
notcriticalErrorTitle: 'Warning',
|
||||||
|
errorInvalidLink: 'The link reference does not exist. Please correct the link or delete it.'
|
||||||
|
|
||||||
}, SSE.Controllers.DocumentHolder || {}));
|
}, SSE.Controllers.DocumentHolder || {}));
|
||||||
});
|
});
|
|
@ -98,6 +98,8 @@
|
||||||
"SSE.Controllers.DocumentHolder.txtHeight": "Height",
|
"SSE.Controllers.DocumentHolder.txtHeight": "Height",
|
||||||
"SSE.Controllers.DocumentHolder.txtRowHeight": "Row Height",
|
"SSE.Controllers.DocumentHolder.txtRowHeight": "Row Height",
|
||||||
"SSE.Controllers.DocumentHolder.txtWidth": "Width",
|
"SSE.Controllers.DocumentHolder.txtWidth": "Width",
|
||||||
|
"SSE.Controllers.DocumentHolder.notcriticalErrorTitle": "Warning",
|
||||||
|
"SSE.Controllers.DocumentHolder.errorInvalidLink": "The link reference does not exist. Please correct the link or delete it.",
|
||||||
"SSE.Controllers.LeftMenu.newDocumentTitle": "Unnamed spreadsheet",
|
"SSE.Controllers.LeftMenu.newDocumentTitle": "Unnamed spreadsheet",
|
||||||
"SSE.Controllers.LeftMenu.textByColumns": "By columns",
|
"SSE.Controllers.LeftMenu.textByColumns": "By columns",
|
||||||
"SSE.Controllers.LeftMenu.textByRows": "By rows",
|
"SSE.Controllers.LeftMenu.textByRows": "By rows",
|
||||||
|
|
Loading…
Reference in a new issue