Ajax reloading incorrectly when searching from wanted page

This commit is contained in:
morpheus65535 2017-12-22 06:40:32 -05:00
parent 5bfdc3ae34
commit 94907b31d9
1 changed files with 4 additions and 6 deletions

View File

@ -151,16 +151,14 @@
sonarrSeriesId: $(this).attr("data-sonarrSeriesId"),
sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId")
};
$('#loader').addClass('active');
$.ajax({
url: "{{base_url}}get_subtitle",
type: "POST",
dataType: "json",
data: values
});
$('#loader').addClass('active');
})
$(document).ajaxStop(function(){
}).always(function () {
window.location.reload();
});
})
</script>