[SSE] Fix bug 32282.

This commit is contained in:
Julia Radzhabova 2016-08-05 14:40:47 +03:00
parent 4dec00ebac
commit 278633279f
2 changed files with 18 additions and 2 deletions

View file

@ -960,7 +960,19 @@ define([
},
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');
if (newDocumentPage)
newDocumentPage.focus();
@ -1540,7 +1552,9 @@ define([
textChangeRowHeight : 'Row Height {0} points ({1} pixels)',
textInsertLeft : 'Insert Left',
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 || {}));
});

View file

@ -98,6 +98,8 @@
"SSE.Controllers.DocumentHolder.txtHeight": "Height",
"SSE.Controllers.DocumentHolder.txtRowHeight": "Row Height",
"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.textByColumns": "By columns",
"SSE.Controllers.LeftMenu.textByRows": "By rows",