Browse Source

First album bug fixed

Tobias Reich 11 years ago
parent
commit
e3f695d502
2 changed files with 4 additions and 2 deletions
  1. 0 0
      assets/js/min/main.js
  2. 4 2
      assets/js/modules/album.js

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


+ 4 - 2
assets/js/modules/album.js

@@ -105,8 +105,10 @@ album = {
 					params = "addAlbum&title=" + escape(encodeURI(title));
 					lychee.api(params, function(data) {
 
-						if (data!==false) lychee.goto(data);
-						else lychee.error(null, params, data);
+						if (data!==false) {
+							if (data===true) data = 1; // Avoid first album to be true
+							lychee.goto(data);
+						} else lychee.error(null, params, data);
 
 					});
 

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