Permalink
Browse files

increased timeout for twitter calls

  • Loading branch information...
1 parent 01462b3 commit c71cb5143ca791d4aec7bf12e60bc31bfebe0cee @robrighter committed Apr 28, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 static/js/tweetwrap.js
View
@@ -22,7 +22,7 @@ var tweetWrap = function (screenname, initcallback, notifyprogress, abandon){
var getFollowers = function (cursor){
var timeout = setTimeout(function(){
that.abandoncallback('The Twitter API is currently unavailable from your location. Please try again later.')}
- ,5000);
+ ,9000);
$.ajax({
'url': ('http://api.twitter.com/1/statuses/followers.json?callback=?&screen_name='+ that.userscreenname +'&cursor='+cursor),
success: function(result) {
@@ -47,7 +47,7 @@ var tweetWrap = function (screenname, initcallback, notifyprogress, abandon){
var getFollowing = function (cursor){
var timeout = setTimeout(function(){
that.abandoncallback('The Twitter API is currently unavailable from your location. Please try again later.')}
- ,5000);
+ ,9000);
$.ajax({
'url': ('http://api.twitter.com/1/statuses/friends.json?callback=?&screen_name='+ that.userscreenname + '&cursor=' + cursor),
success: function(result) {
@@ -116,7 +116,7 @@ var tweetWrap = function (screenname, initcallback, notifyprogress, abandon){
var diderror = true;
var timeout = setTimeout(function(){
that.abandoncallback('Either the user does not exist or the Twitter API is unavailable. Please try again later.')}
- ,5000);
+ ,9000);
$.ajax({
'url': ('http://api.twitter.com/1/users/show.json?callback=?&screen_name='+screenname),

0 comments on commit c71cb51

Please sign in to comment.