mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
fixed redact btns disabling
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user