Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-26 23:14:40 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-26 23:14:40 +0300
commitc29d6785a9ad2d49629595025f7fe928266ad6a2 (patch)
tree050ac9ec094d487a8ba8b5b84e72d30a32e4c243 /js/galleryview.js
parent033f5d584b2a1b6b89e2b2d42b2f5cfba29fc68c (diff)
Reset album design is folder is empty
Fixes #385 [ci skip]
Diffstat (limited to 'js/galleryview.js')
-rw-r--r--js/galleryview.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/js/galleryview.js b/js/galleryview.js
index 38c880b6..41c25bc2 100644
--- a/js/galleryview.js
+++ b/js/galleryview.js
@@ -41,14 +41,17 @@
Gallery.showEmpty();
} else {
Gallery.showEmptyFolder();
+ this.hideButtons();
Gallery.currentAlbum = albumPath;
this.breadcrumb = new Gallery.Breadcrumb(albumPath);
this.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth);
+ Gallery.config.albumDesign = null;
}
} else {
- this._setBackgroundColour();
this.viewAlbum(albumPath);
}
+
+ this._setBackgroundColour();
},
/**
@@ -198,6 +201,14 @@
}
},
+ hideButtons: function () {
+ $('#loading-indicator').hide();
+ $('#album-info-button').hide();
+ $('#share-button').hide();
+ $('#sort-name-button').hide();
+ $('#sort-date-button').hide();
+ },
+
/**
* Adds all the click handlers to buttons the first time they appear in the interface
*