Hash tag back. Garbage collection.

This commit is contained in:
Jason A. Donenfeld
2011-05-06 02:43:54 -04:00
parent 0c7d542b46
commit e11da0e963
2 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,7 @@ $(document).ready(function() {
$(document.body).html("Wrong picture.");
return;
}
$("#photo").html("<a href=\"javascript:history.back(-1)\"><img src=\"" + imagePath(current_album.photos[index].name, current_album.path, 640, false) + "\"></a>");
$("#photo").html("<a href=\"#" + current_album_cache + "\"><img src=\"" + imagePath(current_album.photos[index].name, current_album.path, 640, false) + "\"></a>");
$("#album").fadeOut();
$("#photo").fadeIn();
}