aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-06-24 03:02:50 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-06-24 03:02:50 -0400
commitcf44d08610747b2ea39b40d79e34a5da939bfe79 (patch)
tree09912a9ea7c6b3d47096ecb9f93d562df95e2adc /web/js
parentBetter output on scanner. (diff)
downloadPhotoFloat-cf44d08610747b2ea39b40d79e34a5da939bfe79.tar.xz
PhotoFloat-cf44d08610747b2ea39b40d79e34a5da939bfe79.zip
Put subalbums on top if more than one.
Diffstat (limited to 'web/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) {