diff --git a/public/javascripts/global.js b/public/javascripts/global.js index 8e6eff2..6766828 100644 --- a/public/javascripts/global.js +++ b/public/javascripts/global.js @@ -13,15 +13,15 @@ $(document).ready(function() { populatePieces('secondary'); populatePublications(); populateReleases(); - populatePerformances(2020, 'composer', true); - populateTalks(2020, true); + populatePerformances(2021, 'composer', true); + populateTalks(2021, true); populateAbout(); populateGallerySelector(); if (window.location.href.split('/').pop().substring(0,3) != "#lg") { window.history.replaceState("object or string", "Title", "/"); + } } -} $( window ).resize(function() { resetDivHeights(); @@ -76,15 +76,15 @@ $(document).ready(function() { $('#eventtypepicker').append($('').val('performer').html('as performer/guest')); $('#eventtypepicker').on('change', function() { - $("#performanceeventslist").empty(); - populatePerformances(parseInt($('#yearpicker').val()), this.value, false); - }); + $("#performanceeventslist").empty(); + populatePerformances(parseInt($('#yearpicker').val()), this.value, false); +}); */ - $("img").load(function() { - alert($(this).height()); - alert($(this).width()); - }); +$("img").load(function() { + alert($(this).height()); + alert($(this).width()); +}); }); @@ -99,7 +99,7 @@ function resetDivHeights(){ //$('#pieces').height($('#releases').height()); //$('#releases').height($('#writings').height()); - $('#pieces').css('height', '1850px'); + $('#pieces').css('height', '2400px'); //if($('#writings').height() >= $('#releases').height()){ // $('#pieces').height($('#writings').height()); //} else { @@ -362,14 +362,14 @@ function populatePieces(type) { }); if(typeof doc != 'undefined'){ - } else{ - documentButton.on('onSlideItemLoad.lg', function(event, index){ - window.history.replaceState(null, null, "/scores/" + score_data.filename); - }); + } else{ + documentButton.on('onSlideItemLoad.lg', function(event, index){ + window.history.replaceState(null, null, "/scores/" + score_data.filename); + }); - documentButton.on('onCloseAfter.lg', function(event, prevIndex, index){ + documentButton.on('onCloseAfter.lg', function(event, prevIndex, index){ window.history.replaceState("object or string", "Title", "/"); - }) + }) } @@ -445,7 +445,7 @@ function populateReleases() { releaseli = $('