diff --git a/public_html/js/Presenters/PostUploadPresenter.js b/public_html/js/Presenters/PostUploadPresenter.js index aa0d9adf..b341dfe5 100644 --- a/public_html/js/Presenters/PostUploadPresenter.js +++ b/public_html/js/Presenters/PostUploadPresenter.js @@ -340,6 +340,11 @@ App.Presenters.PostUploadPresenter = function( } else { $el.find('.form-slider .thumbnail img').show()[0].setAttribute('src', thumbnailDataURL); } + $el.find('.form-slider .thumbnail a').attr( + 'href', + post.file !== null ? + URL.createObjectURL(post.file) + : thumbnailDataURL); }); } diff --git a/public_html/templates/post-upload.tpl b/public_html/templates/post-upload.tpl index d817747c..1603487c 100644 --- a/public_html/templates/post-upload.tpl +++ b/public_html/templates/post-upload.tpl @@ -73,6 +73,7 @@
Thumbnail + Open preview in a new tab