mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-23 16:08:53 -05:00
added check for twitter container in twitter.js
This commit is contained in:
parent
a632295e50
commit
b021a483dc
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user