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:
Gehad elrobey 2014-10-31 02:50:17 +02:00 committed by Dirk Hohndel
parent 4e9aff047e
commit e3be473a7f
2 changed files with 40 additions and 6 deletions

View file

@ -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;
}