diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-06-24 03:02:50 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-06-24 03:02:50 -0400 |
commit | cf44d08610747b2ea39b40d79e34a5da939bfe79 (patch) | |
tree | 09912a9ea7c6b3d47096ecb9f93d562df95e2adc /web | |
parent | Better output on scanner. (diff) | |
download | PhotoFloat-cf44d08610747b2ea39b40d79e34a5da939bfe79.tar.xz PhotoFloat-cf44d08610747b2ea39b40d79e34a5da939bfe79.zip |
Put subalbums on top if more than one.
Diffstat (limited to 'web')
-rw-r--r-- | web/css/000-controls.css | 1 | ||||
-rw-r--r-- | web/js/011-display.js | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/web/css/000-controls.css b/web/css/000-controls.css index bcd4387..8ee98ad 100644 --- a/web/css/000-controls.css +++ b/web/css/000-controls.css @@ -30,6 +30,7 @@ a:hover { padding: 1em; } #thumbs { + clear: both; line-height: 0; } 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) { |