From f37b8cc5d4a68059ebbaf81e7c62a995e0f326fb Mon Sep 17 00:00:00 2001 From: Zach Wise Date: Mon, 2 Jul 2012 12:59:18 -0500 Subject: [PATCH] Cleanup and fix waiting on twitter messeges --- source/js/Media/VMM.ExternalAPI.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/js/Media/VMM.ExternalAPI.js b/source/js/Media/VMM.ExternalAPI.js index 898a8f2..2b33797 100644 --- a/source/js/Media/VMM.ExternalAPI.js +++ b/source/js/Media/VMM.ExternalAPI.js @@ -100,8 +100,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { errorTimeOut: function(tweet) { trace("TWITTER JSON ERROR TIMEOUT " + tweet.mid); - VMM.attachElement("#tweet_" + tweet.id, "

Still waiting on Twitter: " + tweet.mid + "

" ); - + VMM.attachElement("#"+tweet.id.toString(), VMM.MediaElement.loadingmessage("Still waiting on Twitter: " + tweet.mid) ); // CHECK RATE STATUS VMM.getJSON("http://api.twitter.com/1/account/rate_limit_status.json", function(d) { trace("REMAINING TWITTER API CALLS " + d.remaining_hits); @@ -111,10 +110,10 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { mes = "

You've reached the maximum number of tweets you can load in an hour.

"; mes += "

You can view tweets again starting at:
" + d.reset_time + "

"; } else { - mes = "

Still waiting on Twitter. " + id + "

"; + mes = "

Still waiting on Twitter. " + tweet.mid + "

"; //mes = "

Tweet " + id + " was not found.

"; } - VMM.attachElement("#twitter_" + id, VMM.MediaElement.loadingmessage(mes) ); + VMM.attachElement("#"+tweet.id.toString(), VMM.MediaElement.loadingmessage(mes) ); }); },