Loading results …
var cdNrInRow = 1;
var cdNrInRowText = '';
if(cdNrInRow == '1'){ cdNrInRowText = 'one'}
var id = 204;
var tracks = '';
$.ajax({
beforeSend: function(){
$('.expansionBar:first').next('.ajaxloader').css('display','block');
},
url: '/models/expansionBarLoader.php',
type: 'POST',
data: 'tracks=' + tracks + '&displayType=overview&cd=' + id,
success: function(result) {
$('.expansionBar:first').next('.ajaxloader').hide();
$('.expansionBar:first').html(result).slideDown();
$('#expansionBarArrow').attr('class',cdNrInRowText);
$('.tracksContainer .singleBar:not(.nonClick) .clickPart').click(function(){
if($(this).parent().hasClass('active')){
$(this).parent().next('.trackVersions').slideUp(200).empty();
$('.tracksContainer .clickPart').parent().removeClass('active');
} else {
$(this).parent().addClass('active');
$('.trackVersions').slideUp(200).empty();
var track = $(this).attr('id');
$.ajax({
url: '/models/trackVersionsLoader.php',
type: 'POST',
data: 'track=' + track + '&cd=' + id,
success: function(result) {
$('#' + track).parent().next('.trackVersions').html(result).slideDown();
}
});
}
});
}
});