[DE PE] Fix new search

This commit is contained in:
JuliaSvinareva 2022-03-23 16:20:51 +03:00
parent c64539f2ab
commit c10d349a19
5 changed files with 7 additions and 7 deletions

View file

@ -48,9 +48,9 @@
<tr>
<td class="padding-small"><div id="search-adv-case-sensitive"></div></td>
</tr>
<tr>
<!---<tr>
<td class="padding-small"><div id="search-adv-use-regexp"></div></td>
</tr>
</tr>-->
<tr>
<td class="padding-large"><div id="search-adv-match-word"></div></td>
</tr>

View file

@ -128,7 +128,7 @@ define([
me.fireEvent('search:options', ['case-sensitive', field.getValue() === 'checked']);
});
this.chUseRegExp = new Common.UI.CheckBox({
/*this.chUseRegExp = new Common.UI.CheckBox({
el: $('#search-adv-use-regexp'),
labelText: this.textMatchUsingRegExp,
dataHint: '1',
@ -136,7 +136,7 @@ define([
dataHintOffset: 'small'
}).on('change', function(field) {
me.fireEvent('search:options', ['regexp', field.getValue() === 'checked']);
});
});*/
this.chMatchWord = new Common.UI.CheckBox({
el: $('#search-adv-match-word'),
@ -311,7 +311,7 @@ define([
this.inputText.setValue(val);
},
clearResults: function () {
clearResultsNumber: function () {
this.updateResultsNumber('no-results');
},

View file

@ -237,6 +237,7 @@ define([
},
onUpdateSearchCurrent: function (current, all) {
if (current === -1) return;
this._state.currentResult = current;
this._state.resultsNumber = all;
if (this.view) {
@ -322,6 +323,7 @@ define([
} else {
this.resultItems = [];
this.view.disableReplaceButtons(true);
this.view.clearResultsNumber();
}
this.view.disableNavButtons(this._state.currentResult, this._state.resultsNumber);
},

View file

@ -482,7 +482,6 @@ define([
}
if (this.header.btnSearch.pressed) {
this.searchBar.show(this.api.asc_GetSelectedText());
leftMenu.getView('LeftMenu').panelSearch.clearResults();
} else {
this.searchBar.hide();
}

View file

@ -534,7 +534,6 @@ define([
}
if (this.header.btnSearch.pressed) {
this.searchBar.show(this.api.asc_GetSelectedText());
leftMenu.getView('LeftMenu').panelSearch.clearResults();
} else {
this.searchBar.hide();
}