Merge pull request #16125 from nextcloud/backport/16114/stable16
[stable16] Fix download link included in public share page with hidden download
This commit is contained in:
commit
02cc18b759
1 changed files with 5 additions and 3 deletions
|
@ -136,9 +136,11 @@ OCA.Sharing.PublicApp = {
|
|||
scalingup: 0
|
||||
};
|
||||
|
||||
var imgcontainer = $('<a href="' + $('#previewURL').val()
|
||||
+ '" target="_blank"><img class="publicpreview" alt=""></a>');
|
||||
var img = imgcontainer.find('.publicpreview');
|
||||
var imgcontainer = $('<img class="publicpreview" alt="">');
|
||||
if (hideDownload === 'false') {
|
||||
imgcontainer = $('<a href="' + $('#previewURL').val() + '" target="_blank"></a>').append(imgcontainer);
|
||||
}
|
||||
var img = imgcontainer.hasClass('publicpreview')? imgcontainer: imgcontainer.find('.publicpreview');
|
||||
img.css({
|
||||
'max-width': previewWidth,
|
||||
'max-height': previewHeight
|
||||
|
|
Loading…
Reference in a new issue