Skip to content

Commit

Permalink
Make sure we add any flickr metadata into the tag cloud too.
Browse files Browse the repository at this point in the history
  • Loading branch information
leenookx committed Sep 15, 2009
1 parent 486e7ca commit 4685968
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/javascripts/flickr-utils.js
Expand Up @@ -25,6 +25,10 @@ function receiveFlickrResponse(results) {
var point = document.getElementById('flickr'); var point = document.getElementById('flickr');
for (var i = 0; i < result.length; i++) { for (var i = 0; i < result.length; i++) {
tmp += "<img src='" + result[i]['media']['m'] + "'/>"; 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; point.innerHTML = tmp;
} }
Expand Down

0 comments on commit 4685968

Please sign in to comment.