Add alert if the pod already made friends

pull/10/head
Chocobozzz 2016-02-07 10:42:55 +01:00
parent b3077e4170
commit d7c01e7793
1 changed files with 5 additions and 0 deletions

View File

@ -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!')
}