Graphic changes

*Moved menu top top
*Added grid view
*Fixed Album & Artist art not loading.
This commit is contained in:
Rasmus Eeg Møller
2012-08-29 16:47:31 +02:00
parent 87c9ebca28
commit 668ce6e311
18 changed files with 776 additions and 872 deletions

View File

@@ -24,10 +24,10 @@ function getArtistInfo(name,imgElem,size,artistID) {
}
var artistBio = artistBio;
var image = imgElem;
var bio = $('#artistBio');
var bio = $('.artist-bio-container .artist-bio');
$(image).attr("src",imageUrl).removeAttr("width").removeAttr("height").hide().fadeIn();
if ( bio.length > 0 ) $(bio).append(artistBio);
$(image).wrap('<a href="albumPage?AlbumID='+ artistID +'"></a>');
$(image).wrap('<a href="artistPage?ArtistID='+ artistID +'"></a>');
}
}
});
@@ -51,10 +51,10 @@ function getArtistInfo(name,imgElem,size,artistID) {
}
var artistBio = artistBio;
var image = imgElem;
var bio = $('#artistBio');
var bio = $('.artist-bio-container .artist-bio');
$(image).attr("src",imageUrl).removeAttr("width").removeAttr("height").hide().fadeIn();
if ( bio.length > 0 ) $(bio).append(artistBio);
$(image).wrap('<a href="'+ imageLarge +'" rel="dialog" title="' + artist + '"></a>');
$(image).wrap('<a href="artistPage?ArtistID=' + artistID + '" rel="dialog" title="' + artist + '"></a>');
}
});
}
@@ -179,4 +179,20 @@ function enit()
$(mainWindow).jScrollPane({ showArrows: true, animateScroll: true });
}
$(document).ready(function(){
$("ul#nav-view li").toggle(function() {
$(this).children("span").removeClass("Icon");
$(this).children("span").addClass("List");
$("#gridView").hide();
$("#listView").show();
enit();
}, function() {
$(this).children("span").removeClass("List");
$(this).children("span").addClass("Icon");
$("#gridView").show();
$("#listView").hide();
enit();
});
});