From f6bbb0cf9ef2ff1d97b4e8a1da8cfd0a174ea6c5 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Wed, 8 Mar 2017 09:56:44 +0100 Subject: [PATCH] Manual search: swap tracker and category and remove search button text --- src/Jackett/Content/custom.js | 6 +++--- src/Jackett/Content/index.html | 16 +++++++++------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Jackett/Content/custom.js b/src/Jackett/Content/custom.js index 3bc75e2ad..b7a076d8c 100644 --- a/src/Jackett/Content/custom.js +++ b/src/Jackett/Content/custom.js @@ -719,7 +719,7 @@ function showSearch(selectedIndexer) { }); $('#jackett-search-perform').click(function () { - if ($('#jackett-search-perform').text().trim() !== 'Search trackers') { + if ($('#jackett-search-perform span').hasClass("spinner")) { // We are searchin already return; } @@ -733,13 +733,13 @@ function showSearch(selectedIndexer) { $('#searchResults div.dataTables_filter input').val(""); clearSearchResultTable($('#searchResults')); var jqxhr = $.post("search", queryObj, function (data) { - $('#jackett-search-perform').html('Search trackers'); + $('#jackett-search-perform').html($('#search-button-ready').html()); var searchResults = $('#searchResults'); searchResults.empty(); var datatable = updateSearchResultTable(searchResults, data).search('').columns().search('').draw(); searchResults.find('div.dataTables_filter input').focusWithoutScrolling(); }).fail(function () { - $('#jackett-search-perform').html('Search trackers'); + $('#jackett-search-perform').html($('#search-button-ready').html()); doNotify("Request to Jackett server failed", "danger", "glyphicon glyphicon-alert"); }); }); diff --git a/src/Jackett/Content/index.html b/src/Jackett/Content/index.html index 4d691003b..c5d7f38cb 100644 --- a/src/Jackett/Content/index.html +++ b/src/Jackett/Content/index.html @@ -393,20 +393,18 @@