diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:42:55 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:42:55 +0100 |
commit | d7c01e7793d813d804a3b5716d8288f9dcf71a16 (patch) | |
tree | 93612231a45011ae336120a9fafa2e93eb059c47 /public/javascripts/index.js | |
parent | b3077e417056f18225957f65419b87de72117fe3 (diff) | |
download | PeerTube-d7c01e7793d813d804a3b5716d8288f9dcf71a16.tar.gz PeerTube-d7c01e7793d813d804a3b5716d8288f9dcf71a16.tar.zst PeerTube-d7c01e7793d813d804a3b5716d8288f9dcf71a16.zip |
Add alert if the pod already made friends
Diffstat (limited to 'public/javascripts/index.js')
-rw-r--r-- | public/javascripts/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ | |||
58 | url: '/api/v1/pods/makefriends', | 58 | url: '/api/v1/pods/makefriends', |
59 | type: 'GET', | 59 | type: 'GET', |
60 | dataType: 'json', | 60 | dataType: 'json', |
61 | statusCode: { | ||
62 | 409: function () { | ||
63 | alert('Already made friends.') | ||
64 | } | ||
65 | }, | ||
61 | success: function () { | 66 | success: function () { |
62 | alert('Made friends!') | 67 | alert('Made friends!') |
63 | } | 68 | } |