made twitter source optional

This commit is contained in:
B Mathis 2009-11-11 17:15:43 -06:00
parent 0abf2cb980
commit b060c72c8e
1 changed files with 2 additions and 1 deletions

View File

@ -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){