projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3077e4
)
Add alert if the pod already made friends
author
Chocobozzz
<florian.bigard@gmail.com>
Sun, 7 Feb 2016 09:42:55 +0000
(10:42 +0100)
committer
Chocobozzz
<florian.bigard@gmail.com>
Sun, 7 Feb 2016 09:42:55 +0000
(10:42 +0100)
public/javascripts/index.js
patch
|
blob
|
history
diff --git
a/public/javascripts/index.js
b/public/javascripts/index.js
index 5d42f02e0b360badf956542f9c57510dc5c236d8..3a02367c866d61c618d394403dc5bb9c5112f669 100644
(file)
--- 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!')
}