Permalink
Browse files

Make sure we add any flickr metadata into the tag cloud too.

  • Loading branch information...
1 parent 486e7ca commit 4685968a950c5da818f82cfa5aa6cb9187624a66 @leenookx committed Sep 15, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 public/javascripts/flickr-utils.js
@@ -25,6 +25,10 @@ function receiveFlickrResponse(results) {
var point = document.getElementById('flickr');
for (var i = 0; i < result.length; i++) {
tmp += "<img src='" + result[i]['media']['m'] + "'/>";
+ var tags = result[i]['tags'].split(" ");
+ for (var j = 0; j < tags.length; j++) {
+ addToTagCloud(tags[j], "", "flickr");
+ }
}
point.innerHTML = tmp;
}

0 comments on commit 4685968

Please sign in to comment.