1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-04 15:12:23 -05:00

Fix jump to select season dropdown list not working.

This commit is contained in:
Alexandre Beloin 2015-01-20 23:12:26 -05:00
parent 91cb8d885c
commit 942cca1ced

View File

@ -5,9 +5,9 @@ $(document).ready(function () {
$('#sbRoot').ajaxEpSubtitlesSearch();
$('#seasonJump').change(function () {
var id = $(this).val();
var id = $('#seasonJump option:selected').val();
if (id && id != 'jump') {
$('html,body').animate({scrollTop: $(id).offset().top}, 'slow');
$('html,body').animate({scrollTop: $('[name ="' + id.substring(1) + '"]').offset().top - 50}, 'slow');
location.hash = id;
}
$(this).val('jump');