Permalink
Browse files

Users are links now instead of plain text.

  • Loading branch information...
1 parent 8bb8c99 commit a0603ffabc16419263b4da9c3d53753b30bbd6b2 @alexlod alexlod committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascript/application.js
@@ -6,7 +6,7 @@ $(function() {
$.getJSON("/friends_in?city=" + ui.item.label, function(data) {
$("#friends_list").html("");
$.each(data, function(i, friend) {
- $("#friends_list").append("<li>" + friend.name + "</li>");
+ $("#friends_list").append("<li><a href='http://www.facebook.com/profile.php?id=" + friend.uid + "' target='_blank'>" + friend.name + "</a></li>");
});
});
$("#friend_name").val("");

0 comments on commit a0603ff

Please sign in to comment.