[all] debug for app customization config
This commit is contained in:
parent
08c0e09b2d
commit
c435ab3290
|
@ -85,43 +85,41 @@ class SearchView extends Component {
|
|||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
const $$ = Dom7;
|
||||
|
||||
this.state = {
|
||||
searchQuery: '',
|
||||
replaceQuery: ''
|
||||
};
|
||||
|
||||
$$(document).on('page:init', (e, page) => {
|
||||
if(!this.searchbar) {
|
||||
this.searchbar = f7.searchbar.create({
|
||||
el: '.searchbar',
|
||||
customSearch: true,
|
||||
expandable: true,
|
||||
backdrop: false,
|
||||
on: {
|
||||
search: (bar, curval, prevval) => {
|
||||
},
|
||||
enable: this.onSearchbarShow.bind(this, true),
|
||||
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');
|
||||
|
||||
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',
|
||||
customSearch: true,
|
||||
expandable: true,
|
||||
backdrop: false,
|
||||
on: {
|
||||
search: (bar, curval, prevval) => {
|
||||
},
|
||||
enable: this.onSearchbarShow.bind(this, true),
|
||||
disable: this.onSearchbarShow.bind(this, false)
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
|
Loading…
Reference in a new issue