jq_tweet_li.find("span.actions div").append("<a class='delete' title='delete this update' href='#delete'></a>");
443
modify_delete_button(jq_tweet_li,json_tweet);
444
}
445
if(json_tweet.in_reply_to_status_id != null)
447
if(json_tweet.in_reply_to_status_id != null)
446
{
448
{
447
jq_tweet_li.find("span.entry-meta").append(" <a
href='http://twitter.com/"+json_tweet.in_reply_to_screen_name+"/status/"+json_tweet.in_reply_to_status_id+"'>in reply to
"+json_tweet.in_reply_to_screen_name+"</a>")
449
jq_tweet_li.find("span.entry-meta").append(" <a
href='http://twitter.com/"+json_tweet.in_reply_to_screen_name+"/status/"+json_tweet.in_reply_to_status_id+"'>in reply to
"+json_tweet.in_reply_to_screen_name+"</a>")
{{{{jq_tweet = j("#timeline #status_"+tweets[i].id);{{convert_json_tweet_to_html_tweet(tweets[i]).appendTo("#timeline");;new_jq_tweet = convert_json_tweet_to_html_tweet(tweets[i]);//.appendTo("#timeline");add_retweet_button(new_jq_tweet,tweets[i]);modify_reply_button(new_jq_tweet,tweets[i]);if(tweets[i].user.screen_name == current_username){new_jq_tweet.find("span.actions div").append("<a class='delete' title='delete this update' href='#delete'></a>");modify_delete_button(new_jq_tweet,tweets[i]);}find_reply_to_me_in_tweet_and_set_to_me_class(new_jq_tweet);new_jq_tweet.appendTo("#timeline");{{jq_tweet = j("#timeline #status_"+tweets[i].id);oldEntryContent = j("#timeline #status_"+tweets[i].id+" .status-body .entry-content").html();oldEntryContent = j("#timeline #status_"+tweets[i].id+" .status-body .entry-content").html();j("#timeline #status_"+tweets[i].id+" .status-body .entry-content").html(newEntryContent);j("#timeline #status_"+tweets[i].id+" .status-body .entry-content").html(newEntryContent);find_reply_to_me_in_tweet_and_set_to_me_class(jq_tweet);{{tweet.find("a.retweet-link").remove();tweet.find("a.retweet-link").remove();//log("Adding retweet button for "+ json_tweet.id);//log("Adding retweet button for "+ json_tweet.id);//log("Adding retweet button for " + json_tweet.id);//log("Adding retweet button for " + json_tweet.id);if(tweet.find(".actions div").length==0)if(tweet.find(".actions div").length==0)show_embedded_retweet(j(this).data('json_tweet'));show_embedded_retweet(j(this).data('json_tweet'));log("Done adding retweet");{{show_embedded_reply(j(this).data('json_tweet'));show_embedded_reply(j(this).data('json_tweet'));log("Done modifying reply");{{jq_tweet_li.find("span.actions div a[id^=status_star]").attr("id","status_star_"+json_tweet.id);jq_tweet_li.find("span.actions div a[id^=status_star]").attr("id","status_star_"+json_tweet.id);jq_tweet_li.find("span.actions div a[id^=status_star]").attr("class",(json_tweet.favorited?"fav":"non-fav"));jq_tweet_li.find("span.actions div a[id^=status_star]").attr("class",(json_tweet.favorited?"fav":"non-fav"));jq_tweet_li.find("span.actions div a[id^=status_star]").attr("title",(json_tweet.favorited?"favorite this update":"un-favorite this tweet"));jq_tweet_li.find("span.actions div a[id^=status_star]").attr("title",(json_tweet.favorited?"favorite this update":"un-favorite this tweet"));modify_reply_button(jq_tweet_li,json_tweet);//log("Adding retweet button, via convert_json method.");//log("Adding retweet button, via convert_json method.");add_retweet_button(jq_tweet_li,json_tweet);jq_tweet_li.find("span.actions div a.retweet-link").unbind();jq_tweet_li.find("span.actions div a.retweet-link").unbind();jq_tweet_li.find("div.embedded-reply").remove();jq_tweet_li.find("div.embedded-reply").remove();jq_tweet_li.find("div.embedded-retweet").remove();jq_tweet_li.find("div.embedded-retweet").remove();if(json_tweet.user.screen_name == current_username){jq_tweet_li.find(".reply").remove();jq_tweet_li.find(".repl").remove();jq_tweet_li.find(".retweet-link").remove();//append trash buttonjq_tweet_li.find("span.actions div").append("<a class='delete' title='delete this update' href='#delete'></a>");modify_delete_button(jq_tweet_li,json_tweet);}{{jq_tweet_li.find("span.entry-meta").append(" <a href='http://twitter.com/"+json_tweet.in_reply_to_screen_name+"/status/"+json_tweet.in_reply_to_status_id+"'>in reply to "+json_tweet.in_reply_to_screen_name+"</a>")jq_tweet_li.find("span.entry-meta").append(" <a href='http://twitter.com/"+json_tweet.in_reply_to_screen_name+"/status/"+json_tweet.in_reply_to_status_id+"'>in reply to "+json_tweet.in_reply_to_screen_name+"</a>")//find_reply_to_me_in_tweet_and_set_to_me_class(jq_tweet_li);