Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

debug unfollow

  • Loading branch information...
commit 9b9002c5ca13d81c5be8c7371adb8cd7465a0dc3 1 parent 7f30779
Rob Righter authored

Showing 2 changed files with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 1 prod-buildout/js/site.js
  2. +3 1 static/js/site.js
4 prod-buildout/js/site.js
@@ -26,11 +26,13 @@ var setProfile = function(user){
26 26 var unfollow = function(screenname,callback){
27 27
28 28 $.getJSON('/__unfollow?screen_name='+screenname, function(data){
29   -
  29 + console.log(data);
30 30 if(data.error){
  31 + console.log('The user is NOT authenticated');
31 32 authenticate();
32 33 }
33 34 else{
  35 + console.log('SUCCESS!!!!');
34 36 callback();
35 37 }
36 38 });
4 static/js/site.js
@@ -26,11 +26,13 @@ var setProfile = function(user){
26 26 var unfollow = function(screenname,callback){
27 27
28 28 $.getJSON('/__unfollow?screen_name='+screenname, function(data){
29   -
  29 + console.log(data);
30 30 if(data.error){
  31 + console.log('The user is NOT authenticated');
31 32 authenticate();
32 33 }
33 34 else{
  35 + console.log('SUCCESS!!!!');
34 36 callback();
35 37 }
36 38 });

0 comments on commit 9b9002c

Please sign in to comment.
Something went wrong with that request. Please try again.