diff options
author | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-03-10 14:54:17 +0300 |
---|---|---|
committer | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-03-10 14:54:17 +0300 |
commit | 05ac7b943cb48ca624a3dca13a8bb84a81bc7519 (patch) | |
tree | e3765538ac6d0b75dcf41bfcaad11ca68e826ed2 | |
parent | 9560d611f3d34d976b91329f05f0a2f3ac7d363d (diff) |
Always generate a link to the gallery from "Files"
-rw-r--r-- | js/gallerybutton.js | 7 |
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) { |