[DE mobile] Fixed highlight search results.
This commit is contained in:
parent
1451d68d48
commit
7629b9c734
|
@ -178,17 +178,18 @@ define([
|
||||||
$inputHighlight = $pageSettings.find('#search-highlight-results input:checkbox');
|
$inputHighlight = $pageSettings.find('#search-highlight-results input:checkbox');
|
||||||
|
|
||||||
$inputType.val([isReplace ? 'replace' : 'search']);
|
$inputType.val([isReplace ? 'replace' : 'search']);
|
||||||
$inputCase.attr('checked', isCaseSensitive);
|
$inputCase.prop('checked', isCaseSensitive);
|
||||||
$inputHighlight.attr('checked', isHighlight);
|
$inputHighlight.prop('checked', isHighlight);
|
||||||
|
|
||||||
// init events
|
// init events
|
||||||
$inputType.single('change', _.bind(me.onTypeChange, me));
|
$inputType.single('change', _.bind(me.onTypeChange, me));
|
||||||
$inputCase.single('click', _.bind(me.onCaseClick, me));
|
$inputCase.single('change', _.bind(me.onCaseClick, me));
|
||||||
$inputHighlight.single('click', _.bind(me.onHighlightClick, me));
|
$inputHighlight.single('change', _.bind(me.onHighlightClick, me));
|
||||||
},
|
},
|
||||||
|
|
||||||
onSearchbarShow: function(bar) {
|
onSearchbarShow: function(bar) {
|
||||||
_isShow = true;
|
_isShow = true;
|
||||||
|
this.api.asc_selectSearchingResults(Common.SharedSettings.get('search-highlight'));
|
||||||
},
|
},
|
||||||
|
|
||||||
onSearchEnable: function (bar) {
|
onSearchEnable: function (bar) {
|
||||||
|
@ -197,6 +198,7 @@ define([
|
||||||
|
|
||||||
onSearchbarHide: function(bar) {
|
onSearchbarHide: function(bar) {
|
||||||
_isShow = false;
|
_isShow = false;
|
||||||
|
this.api.asc_selectSearchingResults(false);
|
||||||
},
|
},
|
||||||
|
|
||||||
onSearchChange: function(search) {
|
onSearchChange: function(search) {
|
||||||
|
@ -325,6 +327,7 @@ define([
|
||||||
|
|
||||||
onHighlightClick: function (e) {
|
onHighlightClick: function (e) {
|
||||||
Common.SharedSettings.set('search-highlight', $(e.currentTarget).is(':checked'));
|
Common.SharedSettings.set('search-highlight', $(e.currentTarget).is(':checked'));
|
||||||
|
this.api.asc_selectSearchingResults(Common.SharedSettings.get('search-highlight'));
|
||||||
},
|
},
|
||||||
|
|
||||||
// API handlers
|
// API handlers
|
||||||
|
|
Loading…
Reference in a new issue