Private GIT

Skip to content
Snippets Groups Projects
Commit 8c9763fd authored by miigotu's avatar miigotu
Browse files

Merge pull request #2543 from MGaetan89/bug/2876

Fix "Jump to Season* dropdrown
parents aec80efa 2f7b93c9
Branches
Tags
No related merge requests found
......@@ -7,7 +7,9 @@ $(document).ready(function () {
$('#seasonJump').change(function () {
var id = $('#seasonJump option:selected').val();
if (id && id != 'jump') {
var season = $('#seasonJump option:selected').data('season');
$('html,body').animate({scrollTop: $('[name ="' + id.substring(1) + '"]').offset().top - 50}, 'slow');
$('#collapseSeason-' + season).collapse('show');
location.hash = id;
}
$(this).val('jump');
......
......@@ -123,7 +123,7 @@ $(document).ready(function(){
<select id="seasonJump" class="form-control input-sm" style="position: relative; top: -4px;">
<option value="jump">Jump to Season</option>
% for seasonNum in seasonResults:
<option value="#season-${seasonNum["season"]}">${('Specials', 'Season ' + str(seasonNum["season"]))[int(seasonNum["season"]) == 0]}</option>
<option value="#season-${seasonNum["season"]}" data-season="${seasonNum["season"]}">${('Specials', 'Season ' + str(seasonNum["season"]))[int(seasonNum["season"]) > 0]}</option>
% endfor
</select>
% else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment