Fixed thumbnails in upload
This commit is contained in:
parent
6cacb90eef
commit
6543dcc8f9
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue