diff --git a/apps/documenteditor/mobile/src/view/Search.jsx b/apps/documenteditor/mobile/src/view/Search.jsx
index c5c01ac65..f7ddd4609 100644
--- a/apps/documenteditor/mobile/src/view/Search.jsx
+++ b/apps/documenteditor/mobile/src/view/Search.jsx
@@ -1,5 +1,6 @@
import React, { Component } from 'react';
import { Searchbar, Popover, Popup, View, Page, List, ListItem, Navbar, NavRight, Link } from 'framework7-react';
+import { Toggle } from 'framework7-react';
import { f7ready, f7 } from 'framework7-react';
import { Device } from '../../../../common/mobile/utils/device';
@@ -38,8 +39,16 @@ class SearchSettingsView extends Component {
{navbar}
- this.onFindReplaceClick('find')}>
- this.onFindReplaceClick('replace')}>
+ this.onFindReplaceClick('find')} />
+ this.onFindReplaceClick('replace')} />
+
+
+
+
+
+
+
+
;
diff --git a/apps/documenteditor/mobile/src/view/search.jsx b/apps/documenteditor/mobile/src/view/search.jsx
deleted file mode 100644
index c5c01ac65..000000000
--- a/apps/documenteditor/mobile/src/view/search.jsx
+++ /dev/null
@@ -1,116 +0,0 @@
-import React, { Component } from 'react';
-import { Searchbar, Popover, Popup, View, Page, List, ListItem, Navbar, NavRight, Link } from 'framework7-react';
-import { f7ready, f7 } from 'framework7-react';
-import { Device } from '../../../../common/mobile/utils/device';
-
-const popoverStyle = {
- height: '300px'
-};
-
-class SearchSettingsView extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- useReplace: false,
- caseSensitive: false,
- markResults: false
- };
- }
-
- onFindReplaceClick(action) {
- this.setState({
- useReplace: action == 'replace'
- });
- }
-
- render() {
- const show_popover = true;
- const navbar =
-
- {!show_popover &&
-
- Done
- }
- ;
- const content =
-
-
- {navbar}
-
- this.onFindReplaceClick('find')}>
- this.onFindReplaceClick('replace')}>
-
-
- ;
- return (
- show_popover ?
- {content} :
- {content}
- )
- }
-}
-
-class SearchView extends Component {
- constructor(props) {
- super(props);
-
- $$(document).on('page:init', (e, page) => {
- if ( page.name == 'home' ) {
- f7.searchbar.create({
- el: '.searchbar',
- customSearch: true,
- expandable: true,
- backdrop: false,
- on: {
- search: (bar, curval, prevval) => {
- console.log('on search results ' + curval);
- }
- }
- });
- }
- });
-
- this.onSettingsClick = this.onSettingsClick.bind(this);
- }
-
- componentDidMount(){
- }
-
- onSettingsClick(e) {
- if ( Device.phone ) {
- // f7.popup.open('.settings-popup');
- } else f7.popover.open('#idx-search-settings', '#idx-btn-search-settings');
- }
-
- render() {
- return (
-
- )
- }
-}
-
-export {SearchView as default, SearchSettingsView};