Fixed thumbnails in upload

This commit is contained in:
Marcin Kurczewski 2014-06-20 21:29:52 +02:00
parent 6cacb90eef
commit 6543dcc8f9

View file

@ -189,7 +189,7 @@ $(function()
{ {
$(img) $(img)
.css('background-image', 'none') .css('background-image', 'none')
.attr('src', '/posts/upload/thumb/' + btoa(url)) .attr('src', url)
.data('custom-thumb', true); .data('custom-thumb', true);
} }
@ -214,7 +214,7 @@ $(function()
else else
{ {
postDom.find('.file-name strong').text(url); postDom.find('.file-name strong').text(url);
changeThumb(postDom.find('img'), url); changeThumb(postDom.find('img'), '/posts/upload/thumb/' + btoa(url));
} }
}); });
} }