[DE PE SSE mobile] Bug 54697

This commit is contained in:
SergeyEzhin 2021-12-24 20:10:23 +03:00
parent c2efc7b4a2
commit fe5a8496cc
9 changed files with 70 additions and 12 deletions

View file

@ -56,7 +56,8 @@
"textStartAt": "Start At",
"textTable": "Table",
"textTableSize": "Table Size",
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\""
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"",
"textOk": "Ok"
},
"Common": {
"Collaboration": {
@ -304,7 +305,8 @@
"textTopAndBottom": "Top and Bottom",
"textTotalRow": "Total Row",
"textType": "Type",
"textWrap": "Wrap"
"textWrap": "Wrap",
"textOk": "Ok"
},
"Error": {
"convertationTimeoutText": "Conversion timeout exceeded.",

View file

@ -34,7 +34,15 @@ class AddLinkController extends Component {
const isEmail = (urltype == 2);
if (urltype < 1) {
f7.dialog.alert(_t.txtNotUrl, _t.notcriticalErrorTitle);
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text: _t.txtNotUrl,
buttons: [
{
text: t('Add.textOk')
}
]
}).open();
return;
}

View file

@ -28,7 +28,17 @@ class EditHyperlinkController extends Component {
const isEmail = (urltype == 2);
if (urltype < 1) {
const { t } = this.props;
f7.dialog.alert(t('Edit.textNotUrl'), t('Edit.notcriticalErrorTitle'));
f7.dialog.create({
title: t('Edit.notcriticalErrorTitle'),
text: t('Edit.textNotUrl'),
buttons: [
{
text: t('Edit.textOk')
}
]
}).open();
return;
}
let url = link.replace(/^\s+|\s+$/g,'');

View file

@ -237,7 +237,8 @@
"textSlideNumber": "Slide Number",
"textTable": "Table",
"textTableSize": "Table Size",
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\""
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"",
"textOk": "Ok"
},
"Edit": {
"notcriticalErrorTitle": "Warning",
@ -385,7 +386,8 @@
"textZoom": "Zoom",
"textZoomIn": "Zoom In",
"textZoomOut": "Zoom Out",
"textZoomRotate": "Zoom and Rotate"
"textZoomRotate": "Zoom and Rotate",
"textOk": "Ok"
},
"Settings": {
"mniSlideStandard": "Standard (4:3)",

View file

@ -42,7 +42,15 @@ class AddLinkController extends Component {
const urltype = api.asc_getUrlType(url.trim());
const isEmail = (urltype == 2);
if (urltype < 1) {
f7.dialog.alert(_t.txtNotUrl, _t.notcriticalErrorTitle);
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text: _t.txtNotUrl,
buttons: [
{
text: t('View.Add.textOk')
}
]
}).open();
return;
}

View file

@ -99,7 +99,16 @@ class EditLinkController extends Component {
const urltype = api.asc_getUrlType(url.trim());
const isEmail = (urltype == 2);
if (urltype < 1) {
f7.dialog.alert(_t.textNotUrl, _t.notcriticalErrorTitle);
f7.dialog.create({
title: t('View.Edit.notcriticalErrorTitle'),
text: t('View.Edit.textNotUrl'),
buttons: [
{
text: t('View.Edit.textOk')
}
]
}).open();
return;
}

View file

@ -351,7 +351,8 @@
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"",
"txtSorting": "Sorting",
"txtSortSelected": "Sort selected",
"txtYes": "Yes"
"txtYes": "Yes",
"textOk": "Ok"
},
"Edit": {
"notcriticalErrorTitle": "Warning",
@ -531,7 +532,8 @@
"textYen": "Yen",
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"",
"txtSortHigh2Low": "Sort Highest to Lowest",
"txtSortLow2High": "Sort Lowest to Highest"
"txtSortLow2High": "Sort Lowest to Highest",
"textOk": "Ok"
},
"Settings": {
"advCSVOptions": "Choose CSV options",

View file

@ -58,7 +58,15 @@ class AddLinkController extends Component {
const isEmail = (urltype == 2);
if (urltype < 1) {
f7.dialog.alert(_t.txtNotUrl, _t.notcriticalErrorTitle);
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text: _t.txtNotUrl,
buttons: [
{
text: t('View.Add.textOk')
}
]
}).open();
return;
}

View file

@ -83,7 +83,16 @@ class EditLinkController extends Component {
let urlType = api.asc_getUrlType(url.trim());
if (urlType < 1) {
f7.dialog.alert(_t.txtNotUrl, _t.notcriticalErrorTitle);
f7.dialog.create({
title: t('View.Edit.notcriticalErrorTitle'),
text: t('View.Edit.textNotUrl'),
buttons: [
{
text: t('View.Edit.textOk')
}
]
}).open();
return;
}