mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -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:
commit
8f2c52e717
@ -5,9 +5,9 @@ $(document).ready(function () {
|
|||||||
$('#sbRoot').ajaxEpSubtitlesSearch();
|
$('#sbRoot').ajaxEpSubtitlesSearch();
|
||||||
|
|
||||||
$('#seasonJump').change(function () {
|
$('#seasonJump').change(function () {
|
||||||
var id = $(this).val();
|
var id = $('#seasonJump option:selected').val();
|
||||||
if (id && id != 'jump') {
|
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;
|
location.hash = id;
|
||||||
}
|
}
|
||||||
$(this).val('jump');
|
$(this).val('jump');
|
||||||
|
Loading…
Reference in New Issue
Block a user