aboutsummaryrefslogtreecommitdiff
path: root/source/javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'source/javascripts')
-rw-r--r--source/javascripts/twitter.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js
index 2d8769ab..fe7ab61b 100644
--- a/source/javascripts/twitter.js
+++ b/source/javascripts/twitter.js
@@ -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),