From 2dc1ba0c2bfe2fcf23040fbc33f34067b77e8b4c Mon Sep 17 00:00:00 2001 From: nikita_bartoshuk Date: Wed, 17 Sep 2025 17:09:19 +0300 Subject: [PATCH] fixed redact btn action --- apps/common/main/lib/view/SearchPanel.js | 4 +++- apps/pdfeditor/main/app/controller/LeftMenu.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/view/SearchPanel.js b/apps/common/main/lib/view/SearchPanel.js index c33618a3d9..b366e67b52 100644 --- a/apps/common/main/lib/view/SearchPanel.js +++ b/apps/common/main/lib/view/SearchPanel.js @@ -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(); diff --git a/apps/pdfeditor/main/app/controller/LeftMenu.js b/apps/pdfeditor/main/app/controller/LeftMenu.js index 1d6e1d9501..0f6701c9e3 100644 --- a/apps/pdfeditor/main/app/controller/LeftMenu.js +++ b/apps/pdfeditor/main/app/controller/LeftMenu.js @@ -114,6 +114,9 @@ define([ }, 'RedactTab': { 'search:showredact': _.bind(this.onShowHideRedactSearch, this) + }, + 'Common.Views.SearchPanel': { + 'search:showredact': _.bind(this.onShowHideRedactSearch, this) } });