Permalink
Browse files

fixed recent links

  • Loading branch information...
1 parent 6d6bb01 commit b79f9084e4b5ecb1e9acc42f6f3e3b392b2c78ea @robrighter committed May 13, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 static/js/tweetwrap.js
View
8 static/js/tweetwrap.js
@@ -19,6 +19,8 @@ var tweetWrap = function (screenname, initcallback, notifyprogress, abandon){
var that = this;
+ var timeoutlength = 20000;
+
var notify = function () {
var tonotify = {
screenname: that.userscreenname,
@@ -41,7 +43,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.')}
- ,9000);
+ ,timeoutlength);
$.ajax({
'url': ('http://api.twitter.com/1/statuses/followers.json?callback=?&screen_name='+ that.userscreenname +'&cursor='+cursor),
success: function(result) {
@@ -66,7 +68,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.')}
- ,9000);
+ ,timeoutlength);
$.ajax({
'url': ('http://api.twitter.com/1/statuses/friends.json?callback=?&screen_name='+ that.userscreenname + '&cursor=' + cursor),
success: function(result) {
@@ -136,7 +138,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.')}
- ,9000);
+ ,timeoutlength);
$.ajax({
'url': ('http://api.twitter.com/1/users/show.json?callback=?&screen_name='+screenname),

0 comments on commit b79f908

Please sign in to comment.