Show albums in reverse order.

master
Jason A. Donenfeld 2011-05-06 08:40:56 -04:00
parent b16b6eee02
commit c5bfa1dcef
1 changed files with 1 additions and 1 deletions

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);