From eeebe4c8c4464a7b1d4eaa10cff1760c6690d0dd Mon Sep 17 00:00:00 2001 From: Tobias Klein Date: Sun, 22 Dec 2024 14:18:16 +0100 Subject: [PATCH] Reset the location of a tab if the second Bible translation changes --- app/frontend/controllers/tab_controller.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/frontend/controllers/tab_controller.js b/app/frontend/controllers/tab_controller.js index 9c5f79a0d..13793f636 100644 --- a/app/frontend/controllers/tab_controller.js +++ b/app/frontend/controllers/tab_controller.js @@ -972,9 +972,12 @@ class TabController { if (currentTab.getTextType() == 'search_results') { if (!isSecondBible) { + // Repeat the search with the new translation await app_controller.text_controller.prepareForNewText(true, true); app_controller.module_search_controller.startSearch(null, this.getSelectedTabIndex(), currentTab.getSearchTerm()); } else { + // We need to re-render the search results with the change of the second translation + currentTab.setLocation(null); await app_controller.module_search_controller.reRenderCurrentSearchResults(); } } else {