Commit 27863327 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Fix bug 32282.

parent 4dec00eb
......@@ -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 || {}));
});
\ No newline at end of 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",
......
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