mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
don't show empty results on search open
This commit is contained in:
@@ -644,7 +644,6 @@ function showSearch(selectedIndexer) {
|
||||
$("#modals").append(releaseDialog);
|
||||
|
||||
releaseDialog.on('shown.bs.modal', function () {
|
||||
updateSearchResultTable($('#searchResults'), []);
|
||||
releaseDialog.find('#searchquery').focusWithoutScrolling();
|
||||
});
|
||||
|
||||
@@ -711,6 +710,11 @@ function showSearch(selectedIndexer) {
|
||||
if (selectedIndexer)
|
||||
searchTracker.val(selectedIndexer);
|
||||
searchTracker.trigger("change");
|
||||
|
||||
updateSearchResultTable($('#searchResults'), []);
|
||||
$("#jackett-search-results-datatable").empty();
|
||||
$("#jackett-search-results-datatable_info").empty();
|
||||
$("#jackett-search-results-datatable_paginate").empty();
|
||||
releaseDialog.modal("show");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user