Permalink
Browse files

add link to originals

  • Loading branch information...
1 parent cb29cef commit 1881f31cfc8d86394d090bb2cc957f2331783c7a @faust45 committed May 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 public/app.js
View
@@ -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);
}
}

0 comments on commit 1881f31

Please sign in to comment.