From 6543dcc8f9151239498e683da669dee9902144c6 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 20 Jun 2014 21:29:52 +0200 Subject: [PATCH] Fixed thumbnails in upload --- public_html/media/js/post-upload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/media/js/post-upload.js b/public_html/media/js/post-upload.js index 972347c0..ca97e7b2 100644 --- a/public_html/media/js/post-upload.js +++ b/public_html/media/js/post-upload.js @@ -189,7 +189,7 @@ $(function() { $(img) .css('background-image', 'none') - .attr('src', '/posts/upload/thumb/' + btoa(url)) + .attr('src', url) .data('custom-thumb', true); } @@ -214,7 +214,7 @@ $(function() else { postDom.find('.file-name strong').text(url); - changeThumb(postDom.find('img'), url); + changeThumb(postDom.find('img'), '/posts/upload/thumb/' + btoa(url)); } }); }