summaryrefslogtreecommitdiffstats
path: root/web/js/011-display.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/011-display.js')
-rw-r--r--web/js/011-display.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/js/011-display.js b/web/js/011-display.js
index 013248a..ce20424 100644
--- a/web/js/011-display.js
+++ b/web/js/011-display.js
@@ -120,6 +120,11 @@ $(document).ready(function() {
subalbumsElement = $("#subalbums");
subalbumsElement.empty();
subalbumsElement.append.apply(subalbumsElement, subalbums);
+
+ if (currentAlbum.albums.length > 1)
+ subalbumsElement.insertBefore(thumbsElement);
+ else
+ thumbsElement.insertBefore(subalbumsElement);
}
if (currentPhoto === null) {