1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 08:55:01 -05:00
SickRage/gui/slick/js/addTrendingShow.js
echel0n 2cd72ad4e8 Fixed small cosmetic bug with trakt trending shows page.
KAT torrent provider now gets and stores size and publishing date info.

Fixed feedcache issue with KAT torrent provider

Added timeout for trakt trending shows page
2014-12-11 13:47:59 -08:00

22 lines
751 B
JavaScript

$(document).ready(function() {
var trendingRequestXhr = null;
function loadContent() {
if (trendingRequestXhr) trendingRequestXhr.abort();
$('#trendingShows').html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32' + themeSpinner + '.gif" height="32" width="32" /> loading trending shows...');
trendingRequestXhr = $.ajax({
url: sbRoot + '/home/addShows/getTrendingShows/',
timeout: 60 * 1000,
error: function () {
$('#trendingShows').empty().html('Trakt timed out, refresh page to try again');
},
success: function (data) {
$('#trendingShows').html(data);
}
});
}
loadContent();
});