index: display thumbnail after upload

This commit is contained in:
mappu 2017-11-18 13:32:54 +13:00
parent 79cb8733e5
commit b88273ec64

View File

@ -60,6 +60,7 @@ contented.init("#surrogate-area", function(items) {
var $table = $("<table>");
for (var i = 0; i < items.length; ++i) {
$table.append($("<tr>").append([
$("<td>").append($("<img>").attr('src', contented.getThumbnailURL(contented.thumbnail.small_square, items[i]))),
$("<td>").text(items[i]),
$("<td>").html("<a target='_blank' href='" + contented.getDownloadURL(items[i]) + "'>get</a>"),
$("<td>").html("<a target='_blank' href='" + contented.getInfoJSONURL(items[i]) + "'>info</a>"),