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 <oparoz@users.noreply.github.com>2015-03-10 14:54:17 +0300
committerOlivier Paroz <oparoz@users.noreply.github.com>2015-03-10 14:54:17 +0300
commit05ac7b943cb48ca624a3dca13a8bb84a81bc7519 (patch)
treee3765538ac6d0b75dcf41bfcaad11ca68e826ed2 /js/gallerybutton.js
parent9560d611f3d34d976b91329f05f0a2f3ac7d363d (diff)
Always generate a link to the gallery from "Files"
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r--js/gallerybutton.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/gallerybutton.js b/js/gallerybutton.js
index dd06ece9..cf1e6f58 100644
--- a/js/gallerybutton.js
+++ b/js/gallerybutton.js
@@ -17,6 +17,8 @@ GalleryButton.onFileListUpdated = function () {
}
files = fileList.files;
+ GalleryButton.buildUrl(fileList.getCurrentDirectory().replace(/^\//, ''));
+
for (var i = 0; i < files.length; i++) {
var file = files[i];
if (file.isPreviewAvailable) {
@@ -26,13 +28,8 @@ GalleryButton.onFileListUpdated = function () {
}
if (hasImages) {
- //GalleryButton.button.toggleClass('hidden', false);
- GalleryButton.buildUrl(fileList.getCurrentDirectory().replace(/^\//, ''));
GalleryButton.hijackShare();
}
- /*else {
- GalleryButton.button.toggleClass('hidden', true);
- }*/
};
GalleryButton.buildUrl = function (dir) {