Browse Source

Fixed some caching issues with duplicate and delete

Tobias Reich 9 years ago
parent
commit
fe52b09694
3 changed files with 10 additions and 1 deletions
  1. 6 1
      assets/js/album.js
  2. 4 0
      assets/js/photo.js
  3. 0 0
      assets/min/main.js

+ 6 - 1
assets/js/album.js

@@ -153,7 +153,12 @@ album = {
 							delete albums.json.content[id];
 						});
 
-					} else lychee.goto("");
+					} else {
+
+						albums.refresh();
+						lychee.goto("");
+
+					}
 
 					if (data!==true) lychee.error(null, params, data);
 

+ 4 - 0
assets/js/photo.js

@@ -154,6 +154,8 @@ photo = {
 
 		});
 
+		albums.refresh();
+
 	},
 
 	delete: function(photoIDs) {
@@ -206,6 +208,8 @@ photo = {
 
 				});
 
+				albums.refresh();
+
 			}],
 			["", function() {}]
 		];

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff