diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/galleryconfig.js | 4 | ||||
-rw-r--r-- | js/galleryview.js | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/js/galleryconfig.js b/js/galleryconfig.js index c6a19e54..b723b784 100644 --- a/js/galleryconfig.js +++ b/js/galleryconfig.js @@ -53,7 +53,9 @@ GalleryConfig.prototype = { descriptionLink: albumInfo.description_link, copyright: albumInfo.copyright, copyrightLink: albumInfo.copyright_link, - filePath: docPath + filePath: docPath, + inherit: albumInfo.inherit, + level: albumInfo.level }; } diff --git a/js/galleryview.js b/js/galleryview.js index 398c0c3f..effe5785 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -111,6 +111,11 @@ Gallery.view.infoButtonSetup = function () { infoButton.hide(); } else { infoButton.show(); + if (albumInfo.inherit === 'yes' && albumInfo.level > 0) { + infoButton.find('span').hide(); + } else { + infoButton.find('span').delay(1000).slideDown(); + } } }; |