mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 14:25:02 -05:00
Fix for new shows
This commit is contained in:
parent
b64f12e940
commit
12ca73bb0e
@ -36,15 +36,15 @@ $(document).ready(function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (searchRequestXhr) {searchRequestXhr.abort()};
|
if (searchRequestXhr) searchRequestXhr.abort();
|
||||||
|
|
||||||
var searchingFor = $('#nameToSearch').val() + ' on ' + $('#providedIndexer option:selected').text() + ' in ' + $('#indexerLangSelect').val();
|
var searchingFor = $('#nameToSearch').val() + ' on ' + $('#providedIndexer option:selected').text() + ' in ' + $('#indexerLangSelect').val();
|
||||||
$('#searchResults').empty().html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32.gif" height="32" width="32" /> searching ' + searchingFor + '...');
|
$('#searchResults').empty().html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32.gif" height="32" width="32" /> searching ' + searchingFor + '...');
|
||||||
|
|
||||||
searchRequestXhr = $.ajax({
|
searchRequestXhr = $.ajax({
|
||||||
url: sbRoot + '/home/addShows/searchIndexersForShowName',
|
url: sbRoot + '/home/addShows/searchIndexersForShowName',
|
||||||
data: {'search_term': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()},
|
data: {'name': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()},
|
||||||
timeout: 20000,
|
timeout: 10000,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
error: function () {
|
error: function () {
|
||||||
$('#searchResults').empty().html('search timed out, try again or try another indexer');
|
$('#searchResults').empty().html('search timed out, try again or try another indexer');
|
||||||
|
Loading…
Reference in New Issue
Block a user