Merge pull request #1276 from ONLYOFFICE/feature/fix-bug-reactjs

Feature/fix bug reactjs
This commit is contained in:
maxkadushkin 2021-10-28 16:29:01 +03:00 committed by GitHub
commit c7b59c0675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 71 additions and 63 deletions

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -449,7 +449,7 @@
"closeButtonText": "Close File",
"notcriticalErrorTitle": "Warning",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Waarschuwing",
"textAbout": "Over",
"textApplication": "Applicatie",
"textApplicationSettings": "Applicatie instellingen",
"textApplicationSettings": "Applicatie Instellingen",
"textAuthor": "Auteur",
"textBack": "Terug",
"textBottom": "Onder",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -484,7 +484,7 @@
"notcriticalErrorTitle": "Warning",
"textAbout": "About",
"textApplication": "Application",
"textApplicationSettings": "Application settings",
"textApplicationSettings": "Application Settings",
"textAuthor": "Author",
"textBack": "Back",
"textBottom": "Bottom",

View file

@ -165,28 +165,30 @@ class ContextMenu extends ContextMenuController {
Common.EditorApi.get().SplitCell(parseInt(size[0]), parseInt(size[1]));
}
}
]
],
on: {
open: () => {
picker = f7.picker.create({
containerEl: document.getElementById('picker-split-size'),
cols: [
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
},
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
}
],
toolbar: false,
rotateEffect: true,
value: [3, 3]
});
}
}
}).open();
dialog.on('opened', () => {
picker = f7.picker.create({
containerEl: document.getElementById('picker-split-size'),
cols: [
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
},
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
}
],
toolbar: false,
rotateEffect: true,
value: [3, 3]
});
});
}
openLink(url) {

View file

@ -28,7 +28,7 @@ class SearchSettings extends SearchSettingsView {
const markup = (
<Page>
<Navbar title={_t.textFindAndReplace}>
<Navbar title={isEdit ? _t.textFindAndReplace : _t.textFind}>
{!show_popover &&
<NavRight>
<Link popupClose=".search-settings-popup">{_t.textDone}</Link>
@ -95,6 +95,8 @@ const Search = withTranslation()(props => {
const onSearchQuery = params => {
const api = Common.EditorApi.get();
f7.popover.close('.document-menu.modal-in', false);
if (params.find && params.find.length) {
if (!api.asc_findText(params.find, params.forward, params.caseSensitive, params.highlight) ) {
f7.dialog.alert(null, _t.textNoTextFound);

View file

@ -145,28 +145,30 @@ class ContextMenu extends ContextMenuController {
Common.EditorApi.get().SplitCell(parseInt(size[0]), parseInt(size[1]));
}
}
]
],
on: {
open: () => {
picker = f7.picker.create({
containerEl: document.getElementById('picker-split-size'),
cols: [
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
},
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
}
],
toolbar: false,
rotateEffect: true,
value: [3, 3]
});
}
}
}).open();
dialog.on('opened', () => {
picker = f7.picker.create({
containerEl: document.getElementById('picker-split-size'),
cols: [
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
},
{
textAlign: 'center',
width: '100%',
values: [1,2,3,4,5,6,7,8,9,10]
}
],
toolbar: false,
rotateEffect: true,
value: [3, 3]
});
});
}
openLink(url) {

View file

@ -21,7 +21,7 @@ class SearchSettings extends SearchSettingsView {
const markup = (
<Page>
<Navbar title={_t.textFindAndReplace}>
<Navbar title={isEdit ? _t.textFindAndReplace : _t.textFind}>
{!show_popover &&
<NavRight>
<Link popupClose=".search-settings-popup">{_t.textDone}</Link>
@ -77,6 +77,8 @@ const Search = withTranslation()(props => {
const onSearchQuery = params => {
const api = Common.EditorApi.get();
f7.popover.close('.document-menu.modal-in', false);
if (params.find && params.find.length) {
if (!api.findText(params.find, params.forward, params.caseSensitive) ) {
f7.dialog.alert(null, _t.textNoTextFound);

View file

@ -29,7 +29,7 @@ class SearchSettings extends SearchSettingsView {
const markup = (
<Page>
<Navbar title={_t.textFindAndReplace}>
<Navbar title={isEdit ? _t.textFindAndReplace : _t.textFind}>
{!show_popover &&
<NavRight>
<Link popupClose=".search-settings-popup">{_t.textDone}</Link>