diff options
author | B Mathis <brandon@imathis.com> | 2009-11-14 14:47:53 -0600 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-11-14 14:47:53 -0600 |
commit | b021a483dc4169f2d7cd8f4351defba7e84edec6 (patch) | |
tree | 33c80419c979ccc23da1363fe1fbcd719f113c63 /source/javascripts | |
parent | a632295e50440b6ea16fc6225ef2c117cde123f6 (diff) | |
download | my_new_personal_website-b021a483dc4169f2d7cd8f4351defba7e84edec6.tar.xz my_new_personal_website-b021a483dc4169f2d7cd8f4351defba7e84edec6.zip |
added check for twitter container in twitter.js
Diffstat (limited to 'source/javascripts')
-rw-r--r-- | source/javascripts/twitter.js | 4 |
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), |