[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) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
const $$ = Dom7;
|
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
searchQuery: '',
|
searchQuery: '',
|
||||||
replaceQuery: ''
|
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.onSettingsClick = this.onSettingsClick.bind(this);
|
||||||
this.onSearchClick = this.onSearchClick.bind(this);
|
this.onSearchClick = this.onSearchClick.bind(this);
|
||||||
this.onReplaceClick = this.onReplaceClick.bind(this);
|
this.onReplaceClick = this.onReplaceClick.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount(){
|
componentDidMount(){
|
||||||
const $$ = Dom7;
|
|
||||||
this.$replace = $$('#idx-replace-val');
|
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() {
|
componentWillUnmount() {
|
||||||
|
|
Loading…
Reference in a new issue