diff --git a/gui/slick/js/newShow.js b/gui/slick/js/newShow.js index 7efe993a..ef3a1d31 100644 --- a/gui/slick/js/newShow.js +++ b/gui/slick/js/newShow.js @@ -36,15 +36,15 @@ $(document).ready(function () { return; } - if (searchRequestXhr) {searchRequestXhr.abort()}; + if (searchRequestXhr) searchRequestXhr.abort(); var searchingFor = $('#nameToSearch').val() + ' on ' + $('#providedIndexer option:selected').text() + ' in ' + $('#indexerLangSelect').val(); $('#searchResults').empty().html(' searching ' + searchingFor + '...'); searchRequestXhr = $.ajax({ url: sbRoot + '/home/addShows/searchIndexersForShowName', - data: {'search_term': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()}, - timeout: 20000, + data: {'name': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()}, + timeout: 10000, dataType: 'json', error: function () { $('#searchResults').empty().html('search timed out, try again or try another indexer');