Manual search URL fix - hash will reset now

This commit is contained in:
chibidev
2017-08-12 01:04:07 +02:00
parent 043085e8f3
commit bf23878477

View File

@@ -35,7 +35,6 @@ $(document).ready(function () {
bindUIButtons(); bindUIButtons();
loadJackettSettings(); loadJackettSettings();
openSearchIfNecessary();
}); });
function openSearchIfNecessary() { function openSearchIfNecessary() {
@@ -135,6 +134,7 @@ function reloadIndexers() {
} }
displayConfiguredIndexersList(configuredIndexers); displayConfiguredIndexersList(configuredIndexers);
$('#indexers div.dataTables_filter input').focusWithoutScrolling(); $('#indexers div.dataTables_filter input').focusWithoutScrolling();
openSearchIfNecessary();
}).fail(function () { }).fail(function () {
doNotify("Error loading indexers, request to Jackett server failed", "danger", "glyphicon glyphicon-alert"); doNotify("Error loading indexers, request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
}); });
@@ -720,6 +720,7 @@ function showSearch(selectedIndexer, query) {
releaseDialog.on('hidden.bs.modal', function (e) { releaseDialog.on('hidden.bs.modal', function (e) {
$('#indexers div.dataTables_filter input').focusWithoutScrolling(); $('#indexers div.dataTables_filter input').focusWithoutScrolling();
window.location.hash = '';
}) ; }) ;
var setCategories = function (tracker, items) { var setCategories = function (tracker, items) {