mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix inconsistent search result in HTML export
The advanced search drop down menu always showed the user selected settings, even if this is a customized search (tag, location) that took place by clicking on the search quick hyperlink. This is fixed by saving the user default search preferences and changing them temporarily when quick hyperlinks searching is used. Fixes #723 Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e9aff047e
commit
e3be473a7f
2 changed files with 40 additions and 6 deletions
|
@ -516,6 +516,7 @@ function Node(value)
|
|||
function Search_list_Modules(searchfor, searchOptions)
|
||||
{
|
||||
document.getElementById("search_input").value = searchfor;
|
||||
set_search_dropdown(searchOptions);
|
||||
SearchModules(searchfor, searchOptions);
|
||||
}
|
||||
|
||||
|
@ -531,6 +532,7 @@ function SearchModules(searchfor, searchOptions)
|
|||
itemsToShow = olditemstoshow;
|
||||
list_sort(sort_based_on);
|
||||
viewInPage();
|
||||
set_search_dropdown(user_search_preference);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue