From 12ca73bb0e851a98bf5fdfc2a08ed5eac60b7af8 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 27 Apr 2014 05:48:33 -0700 Subject: [PATCH] Fix for new shows --- gui/slick/js/newShow.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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');