[all] debug for app customization config

This commit is contained in:
Maxim Kadushkin 2021-10-19 23:51:59 +03:00
parent 08c0e09b2d
commit c435ab3290

View file

@ -85,14 +85,27 @@ class SearchView extends Component {
constructor(props) {
super(props);
const $$ = Dom7;
this.state = {
searchQuery: '',
replaceQuery: ''
};
$$(document).on('page:init', (e, page) => {
this.onSettingsClick = this.onSettingsClick.bind(this);
this.onSearchClick = this.onSearchClick.bind(this);
this.onReplaceClick = this.onReplaceClick.bind(this);
}
componentDidMount(){
this.$replace = $$('#idx-replace-val');
const $editor = $$('#editor_sdk');
$editor.on('pointerdown', this.onEditorTouchStart.bind(this));
$editor.on('pointerup', this.onEditorTouchEnd.bind(this));
if( !this.searchbar ) {
this.searchbar = f7.searchbar.get('.searchbar');
}
if( !this.searchbar ) {
this.searchbar = f7.searchbar.create({
el: '.searchbar',
@ -106,22 +119,7 @@ class SearchView extends Component {
disable: this.onSearchbarShow.bind(this, false)
}
});
const $editor = $$('#editor_sdk');
$editor.on('pointerdown', this.onEditorTouchStart.bind(this));
$editor.on('pointerup', this.onEditorTouchEnd.bind(this));
}
});
this.onSettingsClick = this.onSettingsClick.bind(this);
this.onSearchClick = this.onSearchClick.bind(this);
this.onReplaceClick = this.onReplaceClick.bind(this);
}
componentDidMount(){
const $$ = Dom7;
this.$replace = $$('#idx-replace-val');
}
componentWillUnmount() {