mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 21:23:17 -05:00
use window.csrftoken for adding user to group subscription
This commit is contained in:
parent
a0805f97e0
commit
07fe9c36a9
1 changed files with 1 additions and 3 deletions
|
@ -39,7 +39,7 @@ require [
|
||||||
type: 'POST'
|
type: 'POST'
|
||||||
data:
|
data:
|
||||||
email: email
|
email: email
|
||||||
_csrf: $("input[name=_csrf]").val()
|
_csrf: csrfToken
|
||||||
success: (data)->
|
success: (data)->
|
||||||
if data.limitReached
|
if data.limitReached
|
||||||
alert("You have reached your maximum number of members")
|
alert("You have reached your maximum number of members")
|
||||||
|
@ -69,8 +69,6 @@ require [
|
||||||
success: ->
|
success: ->
|
||||||
$(userRow).parents("tr").fadeOut(250)
|
$(userRow).parents("tr").fadeOut(250)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$form.on 'keypress', (e)->
|
$form.on 'keypress', (e)->
|
||||||
if(e.keyCode == 13)
|
if(e.keyCode == 13)
|
||||||
addUser(e)
|
addUser(e)
|
||||||
|
|
Loading…
Reference in a new issue