Browse Source

added check for twitter container in twitter.js

unreleased_contents
B Mathis 15 years ago
parent
commit
b021a483dc
  1. 4
      source/javascripts/twitter.js

4
source/javascripts/twitter.js

@ -67,8 +67,10 @@ function prettyDate(time){
} }
function getTwitterStatus(twitter_name){ function getTwitterStatus(twitter_name){
var container = $(twitter_container);
if(!container) return;
var tweet_cookie = 'tweets_by_' + twitter_name + tweet_count; 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)) { if(!Cookie.read(tweet_cookie)) {
var myTwitterGitter = new TwitterGitter(twitter_name,{ var myTwitterGitter = new TwitterGitter(twitter_name,{
count: ((show_replies) ? tweet_count : 15 + tweet_count), count: ((show_replies) ? tweet_count : 15 + tweet_count),

Loading…
Cancel
Save