mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-02 02:45:02 +00:00
Add failure handling, skip provider for x hour(s) depending on count of failures. Add detection of api hit limit reached. Add failure count to omgwtfnzbs. Change improve categories selection (manual search for example).
44 lines
No EOL
1.3 KiB
JavaScript
44 lines
No EOL
1.3 KiB
JavaScript
$(document).ready(function() {
|
|
$('#recentsearch,#propersearch').click(function(){
|
|
$(this).addClass('disabled');
|
|
})
|
|
$('#forcebacklog,#forcefullbacklog').click(function(){
|
|
$('#forcebacklog,#forcefullbacklog').addClass('disabled');
|
|
$('#pausebacklog').removeClass('disabled');
|
|
})
|
|
$('#pausebacklog').click(function(){
|
|
$(this).addClass('disabled');
|
|
})
|
|
$('.show-all-less').click(function(){
|
|
$(this).nextAll('table').hide();
|
|
$(this).nextAll('input.shows-more').show();
|
|
$(this).nextAll('input.shows-less').hide();
|
|
})
|
|
$('.show-all-more').click(function(){
|
|
$(this).nextAll('table').show();
|
|
$(this).nextAll('input.shows-more').hide();
|
|
$(this).nextAll('input.shows-less').show();
|
|
})
|
|
|
|
$('.shows-less').click(function(){
|
|
$(this).nextAll('table:first').hide();
|
|
$(this).hide();
|
|
$(this).prevAll('input:first').show();
|
|
})
|
|
$('.shows-more').click(function(){
|
|
$(this).nextAll('table:first').show();
|
|
$(this).hide();
|
|
$(this).nextAll('input:first').show();
|
|
})
|
|
$('.prov-retry').click(function () {
|
|
$(this).addClass('disabled');
|
|
var match = $(this).attr('id').match(/^(.+)-btn-retry$/);
|
|
$.ajax({
|
|
url: sbRoot + '/manage/manageSearches/retryProvider?provider=' + match[1],
|
|
type: 'GET',
|
|
complete: function () {
|
|
window.location.reload(true);
|
|
}
|
|
});
|
|
})
|
|
}); |