Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add link to originals

  • Loading branch information...
commit 1881f31cfc8d86394d090bb2cc957f2331783c7a 1 parent cb29cef
@faust45 authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 public/app.js
View
5 public/app.js
@@ -12,7 +12,10 @@ function renderImages(data, statusText) {
for(var i in data) {
var id = data[i];
- $("#images").append("<img class='thumb' src='/img/"+id+"?height="+height+"&width="+width+"' />");
+ var linkToOriginal = $("<a href='/img/"+id+"'> </a>"),
+ thumb = "<img class='thumb' src='/img/"+id+"?height="+height+"&width="+width+"' />";
+ linkToOriginal.append(thumb);
+ $("#images").append(linkToOriginal);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.