diff options
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r-- | js/gallerybutton.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/gallerybutton.js b/js/gallerybutton.js index cf1e6f58..8d69a572 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -18,7 +18,7 @@ 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) { @@ -48,7 +48,7 @@ GalleryButton.hijackShare = function () { OC.Share.showLink = function () { var r = target.apply(this, arguments); if ($('#dropdown.drop.shareDropDown').data('item-type') === "folder") { - + if (!$('#linkSwitchButton').length) { var linkSwitchButton = '<a class="button" id="linkSwitchButton">' + t(GalleryButton.appName, 'Show Gallery link') + '</a>'; |