Browse code

made twitter source optional

B Mathis authored on 11/11/2009 at 23:15:43
Showing 1 changed files
... ...
@@ -16,6 +16,7 @@
16 16
 var tweet_container = 'li';
17 17
 var twitter_container = 'twitter_status';
18 18
 var key = '-!-!-';
19
+var show_source = false;
19 20
 
20 21
 window.addEvent('domready',function() {
21 22
 	getTwitterStatus(twitter_user);
... ...
@@ -43,7 +44,7 @@ function parseTweetMeta(tweet_data){
43 43
   var source = tweet_data[3];
44 44
   
45 45
   date = prettyDate(new Date().parse(date));
46
-  return tweet + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a> from ' + source + '</span>';
46
+  return tweet + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a>' + (show_source ? ' from '+source : '') + '</span>';
47 47
 }
48 48
 
49 49
 function prettyDate(time){