fixed redact btn action

This commit is contained in:
nikita_bartoshuk
2025-09-17 17:09:19 +03:00
parent 07732f6186
commit 2dc1ba0c2b
2 changed files with 6 additions and 1 deletions

View File

@ -192,7 +192,9 @@ define([
dataHintDirection: 'bottom',
dataHintOffset: 'medium'
});
this.buttonRedactSearch.on('click', _.bind(this.onClickClosePanel, this));
this.buttonRedactSearch.on('click', _.bind(function() {
this.fireEvent('search:showredact');
}, this));
this.$resultsContainer = $('#search-results');
this.$resultsContainer.hide();

View File

@ -114,6 +114,9 @@ define([
},
'RedactTab': {
'search:showredact': _.bind(this.onShowHideRedactSearch, this)
},
'Common.Views.SearchPanel': {
'search:showredact': _.bind(this.onShowHideRedactSearch, this)
}
});