diff --git a/public/javascripts/index.js b/public/javascripts/index.js index 5d42f02e0..3a02367c8 100644 --- a/public/javascripts/index.js +++ b/public/javascripts/index.js @@ -58,6 +58,11 @@ url: '/api/v1/pods/makefriends', type: 'GET', dataType: 'json', + statusCode: { + 409: function () { + alert('Already made friends.') + } + }, success: function () { alert('Made friends!') }