|
@@ -146,6 +146,8 @@ photo = {
|
|
if (!photoIDs) return false;
|
|
if (!photoIDs) return false;
|
|
if (photoIDs instanceof Array===false) photoIDs = [photoIDs];
|
|
if (photoIDs instanceof Array===false) photoIDs = [photoIDs];
|
|
|
|
|
|
|
|
+ albums.refresh();
|
|
|
|
+
|
|
params = "duplicatePhoto&photoIDs=" + photoIDs;
|
|
params = "duplicatePhoto&photoIDs=" + photoIDs;
|
|
lychee.api(params, function(data) {
|
|
lychee.api(params, function(data) {
|
|
|
|
|
|
@@ -154,8 +156,6 @@ photo = {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
- albums.refresh();
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
delete: function(photoIDs) {
|
|
delete: function(photoIDs) {
|
|
@@ -201,6 +201,8 @@ photo = {
|
|
// Only when search is not active
|
|
// Only when search is not active
|
|
if (!visible.albums()) lychee.goto(album.getID());
|
|
if (!visible.albums()) lychee.goto(album.getID());
|
|
|
|
|
|
|
|
+ albums.refresh();
|
|
|
|
+
|
|
params = "deletePhoto&photoIDs=" + photoIDs;
|
|
params = "deletePhoto&photoIDs=" + photoIDs;
|
|
lychee.api(params, function(data) {
|
|
lychee.api(params, function(data) {
|
|
|
|
|
|
@@ -208,8 +210,6 @@ photo = {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
- albums.refresh();
|
|
|
|
-
|
|
|
|
}],
|
|
}],
|
|
["", function() {}]
|
|
["", function() {}]
|
|
];
|
|
];
|
|
@@ -312,6 +312,8 @@ photo = {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ albums.refresh();
|
|
|
|
+
|
|
params = "setPhotoAlbum&photoIDs=" + photoIDs + "&albumID=" + albumID;
|
|
params = "setPhotoAlbum&photoIDs=" + photoIDs + "&albumID=" + albumID;
|
|
lychee.api(params, function(data) {
|
|
lychee.api(params, function(data) {
|
|
|
|
|
|
@@ -336,6 +338,8 @@ photo = {
|
|
view.album.content.star(id);
|
|
view.album.content.star(id);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ albums.refresh();
|
|
|
|
+
|
|
params = "setPhotoStar&photoIDs=" + photoIDs;
|
|
params = "setPhotoStar&photoIDs=" + photoIDs;
|
|
lychee.api(params, function(data) {
|
|
lychee.api(params, function(data) {
|
|
|
|
|
|
@@ -343,8 +347,6 @@ photo = {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
- albums.refresh();
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
setPublic: function(photoID, e) {
|
|
setPublic: function(photoID, e) {
|
|
@@ -369,6 +371,8 @@ photo = {
|
|
album.json.content[photoID].public = (album.json.content[photoID].public==0) ? 1 : 0;
|
|
album.json.content[photoID].public = (album.json.content[photoID].public==0) ? 1 : 0;
|
|
view.album.content.public(photoID);
|
|
view.album.content.public(photoID);
|
|
|
|
|
|
|
|
+ albums.refresh();
|
|
|
|
+
|
|
params = "setPhotoPublic&photoID=" + photoID;
|
|
params = "setPhotoPublic&photoID=" + photoID;
|
|
lychee.api(params, function(data) {
|
|
lychee.api(params, function(data) {
|
|
|
|
|
|
@@ -376,8 +380,6 @@ photo = {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
- albums.refresh();
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
setDescription: function(photoID) {
|
|
setDescription: function(photoID) {
|