Hide download button only w/o photos and subalbums.

Previously, an album with subalbums, but without photos, was hiding
the download button.
This commit is contained in:
Nils Asmussen 2016-08-07 14:47:45 +02:00
parent 20c194f00c
commit a258affc5f

View File

@ -141,7 +141,7 @@ header.setMode = function(mode) {
header.dom('.header__toolbar--album').addClass('header__toolbar--visible')
// Hide download button when album empty
if (album.json.content===false) $('#button_archive').hide()
if (album.json.content===false && album.subjson.num==0) $('#button_archive').hide()
else $('#button_archive').show()
// Hide download button when not logged in and album not downloadable