Skip to content

Commit

Permalink
re-rendering replaces old content now
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Anderson committed Nov 10, 2008
1 parent 5f57949 commit 3d06199
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _attachments/index.html
Expand Up @@ -25,9 +25,9 @@
// }});

function renderTimeline(tweets) {
$.each(tweets, function(i, tweet) {
// todo map
$("#tweets ul").append('<li><img class="profile" src="'+tweet.user.profile_image_url+'" />'
$("#tweets ul").html($.map(tweets, function(tweet) {
return '<li><img class="profile" src="'
+ tweet.user.profile_image_url + '" />'
+ '<h3><a class="user" title="'
+ tweet.user.screen_name + '" href="http://twitter.com/'
+ tweet.user.screen_name + '">'
Expand All @@ -38,8 +38,8 @@
// + relative_time(tweet.created_at)
+ ' via '
+ tweet.source
+ '</span><br class="clear"/></li>');
});
+ '</span><br class="clear"/></li>';
}).join(''));
};

var db = $.couch.db(document.location.href.split('/')[3]);
Expand Down

0 comments on commit 3d06199

Please sign in to comment.