1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Merge pull request #1215 from abeloin/patch-season_jump

Fix jump to select season dropdown list not working.
This commit is contained in:
echel0n 2015-01-29 14:36:57 -08:00
commit 8f2c52e717

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');