fixed redact btns disabling

This commit is contained in:
nikita_bartoshuk
2025-09-28 22:06:03 +03:00
parent 205de55fa7
commit 4fdf3e5b57
2 changed files with 12 additions and 3 deletions

View File

@ -284,11 +284,14 @@ define([
this.api.asc_RedactSearchElement(this.resultItems[this._state.currentResult].id);
if (this.resultItems[this._state.currentResult + 1]) {
this.api.asc_SelectSearchElement(this._state.currentResult + 1);
} else {
this.view.disableRedactButtons(this.api.asc_GetRedactSearchInfo(this._state.currentResult))
}
},
onMarkAll: function (textSearch) {
this.api.asc_RedactAllSearchElements();
this.view.disableRedactButtons(this.api.asc_GetRedactSearchInfo(this._state.currentResult))
},
removeResultItems: function (type) {
@ -308,7 +311,7 @@ define([
if (this.view) {
this.view.updateResultsNumber(current, all);
this.view.disableNavButtons(current, all);
this.view.disableRedactButtons(this.api.asc_GetRedactSearchInfo(current))
this.view.disableRedactButtons(this.api.asc_GetRedactSearchInfo(current));
if (this.resultItems && this.resultItems.length > 0) {
this.resultItems.forEach(function (item) {
item.selected = false;