Fixed bug in countSubAlbums.
This commit is contained in:
parent
f7e31c2be7
commit
8b37d122b9
@ -211,11 +211,13 @@ contextMenu.photo = function(photoID, e) {
|
|||||||
|
|
||||||
function countSubAlbums(photoIDs) {
|
function countSubAlbums(photoIDs) {
|
||||||
let count = 0
|
let count = 0
|
||||||
for (i in photoIDs) {
|
if (album.subjson) {
|
||||||
for (j in album.subjson.albums) {
|
for (i in photoIDs) {
|
||||||
if (album.subjson.albums[j].id == photoIDs[i]) {
|
for (j in album.subjson.albums) {
|
||||||
count++
|
if (album.subjson.albums[j].id == photoIDs[i]) {
|
||||||
break
|
count++
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user