Added link to full image preview in post uploads

This commit is contained in:
Marcin Kurczewski
2015-03-19 22:48:50 +01:00
parent a3157a48ec
commit fce9c3483a
2 changed files with 6 additions and 0 deletions

View File

@ -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);
});
}