Show albums in reverse order.

This commit is contained in:
Jason A. Donenfeld 2011-05-06 08:40:56 -04:00
parent b16b6eee02
commit c5bfa1dcef

View File

@ -73,7 +73,7 @@ $(document).ready(function() {
else
$("#subalbums-title").hide();
var subalbums = "";
for (var i = 0; i < current_album.albums.length; ++i)
for (var i = current_album.albums.length - 1; i >= 0; --i)
subalbums += "<a href=\"#" + cachePath(current_album.path + "/" + current_album.albums[i].path) + "\"><div class=\"album-button\">" + current_album.albums[i].path + "</div></a>";
$("#subalbums").html(subalbums);