Move and delete photo fixed

This commit is contained in:
Tobias Reich 2014-01-22 15:26:13 +01:00
parent dd2f6ebc77
commit f9f4afe7db
2 changed files with 12 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -151,6 +151,17 @@ photo = {
if (albumID>=0) {
// Change reference for the next and previous photo
if (album.json.content[photoID].nextPhoto!==""||album.json.content[photoID].previousPhoto!=="") {
nextPhoto = album.json.content[photoID].nextPhoto;
previousPhoto = album.json.content[photoID].previousPhoto;
album.json.content[previousPhoto].nextPhoto = nextPhoto;
album.json.content[nextPhoto].previousPhoto = previousPhoto;
}
if (visible.photo) lychee.goto(album.getID());
album.json.content[photoID] = null;
view.album.content.delete(photoID);