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:
parent
91cb8d885c
commit
942cca1ced
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user