index: replace our custom result listing page with an album preview
This commit is contained in:
parent
08321818ff
commit
3a103ae484
@ -56,23 +56,7 @@ $.get("/about", function(ret) {
|
|||||||
|
|
||||||
// Load upload widget
|
// Load upload widget
|
||||||
contented.init("#surrogate-area", function(items) {
|
contented.init("#surrogate-area", function(items) {
|
||||||
|
window.location.href = contented.getMultiPreviewURL(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>"),
|
|
||||||
]))
|
|
||||||
}
|
|
||||||
$("#surrogate-area").html([
|
|
||||||
$table,
|
|
||||||
$("<button>").addClass("again").text("Again...").click(function() {
|
|
||||||
window.location.href = window.location.href;
|
|
||||||
}),
|
|
||||||
]);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user