From b060c72c8ecdc1c6c1873cb86d8eb862344835fb Mon Sep 17 00:00:00 2001 From: B Mathis Date: Wed, 11 Nov 2009 17:15:43 -0600 Subject: [PATCH] made twitter source optional --- source/javascripts/twitter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js index 975e7ad..4420c71 100644 --- a/source/javascripts/twitter.js +++ b/source/javascripts/twitter.js @@ -16,6 +16,7 @@ var tweet_container = 'li'; var twitter_container = 'twitter_status'; var key = '-!-!-'; +var show_source = false; window.addEvent('domready',function() { getTwitterStatus(twitter_user); @@ -43,7 +44,7 @@ function parseTweetMeta(tweet_data){ var source = tweet_data[3]; date = prettyDate(new Date().parse(date)); - return tweet + '' + date + ' from ' + source + ''; + return tweet + '' + date + '' + (show_source ? ' from '+source : '') + ''; } function prettyDate(time){