Merge pull request #1276 from ONLYOFFICE/feature/fix-bug-reactjs
Feature/fix bug reactjs
This commit is contained in:
commit
c7b59c0675
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -449,7 +449,7 @@
|
|||
"closeButtonText": "Close File",
|
||||
"notcriticalErrorTitle": "Warning",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Waarschuwing",
|
||||
"textAbout": "Over",
|
||||
"textApplication": "Applicatie",
|
||||
"textApplicationSettings": "Applicatie instellingen",
|
||||
"textApplicationSettings": "Applicatie Instellingen",
|
||||
"textAuthor": "Auteur",
|
||||
"textBack": "Terug",
|
||||
"textBottom": "Onder",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"notcriticalErrorTitle": "Warning",
|
||||
"textAbout": "About",
|
||||
"textApplication": "Application",
|
||||
"textApplicationSettings": "Application settings",
|
||||
"textApplicationSettings": "Application Settings",
|
||||
"textAuthor": "Author",
|
||||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue