[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,15 +85,28 @@ class SearchView extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
const $$ = Dom7;
this.state = { this.state = {
searchQuery: '', searchQuery: '',
replaceQuery: '' replaceQuery: ''
}; };
$$(document).on('page:init', (e, page) => { this.onSettingsClick = this.onSettingsClick.bind(this);
if(!this.searchbar) { 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({ this.searchbar = f7.searchbar.create({
el: '.searchbar', el: '.searchbar',
customSearch: true, customSearch: true,
@ -106,22 +119,7 @@ class SearchView extends Component {
disable: this.onSearchbarShow.bind(this, false) 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() { componentWillUnmount() {