don't show empty results on search open

This commit is contained in:
kaso17 2017-02-03 19:23:03 +01:00
parent c17294052d
commit 1a79bf3219
1 changed files with 5 additions and 1 deletions

View File

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