added check for twitter container in twitter.js

This commit is contained in:
B Mathis 2009-11-14 14:47:53 -06:00
parent a632295e50
commit b021a483dc

View File

@ -67,8 +67,10 @@ function prettyDate(time){
}
function getTwitterStatus(twitter_name){
var container = $(twitter_container);
if(!container) return;
var tweet_cookie = 'tweets_by_' + twitter_name + tweet_count;
$(twitter_container).set('html', 'Fetching tweets...');
container.set('html', 'Fetching tweets...');
if(!Cookie.read(tweet_cookie)) {
var myTwitterGitter = new TwitterGitter(twitter_name,{
count: ((show_replies) ? tweet_count : 15 + tweet_count),