diff options
-rw-r--r-- | source/javascripts/twitter.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js index 975e7adb..4420c710 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 + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a> from ' + source + '</span>'; + return tweet + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a>' + (show_source ? ' from '+source : '') + '</span>'; } function prettyDate(time){ |