diff options
author | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-03-10 14:12:47 +0300 |
---|---|---|
committer | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-03-10 14:12:47 +0300 |
commit | 9560d611f3d34d976b91329f05f0a2f3ac7d363d (patch) | |
tree | 23fcfccbb95e79831eb726fb6da0d2dd105f23b4 /js/gallerybutton.js | |
parent | 5344422f20f3f3302a056dd39f24f2c329dc9786 (diff) |
Always enable the "Gallery" button
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r-- | js/gallerybutton.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/gallerybutton.js b/js/gallerybutton.js index 461b931e..dd06ece9 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -12,11 +12,10 @@ GalleryButton.onFileListUpdated = function () { if (GalleryButton.isPublic) { fileList = OCA.Sharing.PublicApp.fileList; - files = fileList.files; } else { fileList = FileList; - files = fileList.files; } + files = fileList.files; for (var i = 0; i < files.length; i++) { var file = files[i]; @@ -27,12 +26,13 @@ GalleryButton.onFileListUpdated = function () { } if (hasImages) { - GalleryButton.button.toggleClass('hidden', false); + //GalleryButton.button.toggleClass('hidden', false); GalleryButton.buildUrl(fileList.getCurrentDirectory().replace(/^\//, '')); GalleryButton.hijackShare(); - } else { - GalleryButton.button.toggleClass('hidden', true); } + /*else { + GalleryButton.button.toggleClass('hidden', true); + }*/ }; GalleryButton.buildUrl = function (dir) { @@ -96,7 +96,7 @@ $(document).ready(function () { $('#fileList').on('updated', GalleryButton.onFileListUpdated); // toggle for opening shared file list as picture view - GalleryButton.button = $('<div id="openAsFileListButton" class="button hidden">' + + GalleryButton.button = $('<div id="openAsFileListButton" class="button">' + '<img class="svg" src="' + OC.imagePath('core', 'actions/toggle-pictures.svg') + '"' + 'alt="' + t('gallery', 'Picture view') + '"/>' + '</div>'); |