mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 16:20:12 +01:00
parent
92047e86e4
commit
e764a75986
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ $.fn.clearForm = function() {
|
|||
|
||||
/* Set up authenticity token properly */
|
||||
$(document).ajaxSend(function(event, request, settings) {
|
||||
if ( settings.type == 'POST' ) {
|
||||
if ( settings.type == 'POST' || settings.type == 'post' ) {
|
||||
if(typeof(AUTH_TOKEN) != 'undefined'){
|
||||
settings.data = (settings.data ? settings.data + "&" : "")
|
||||
+ "authenticity_token=" + encodeURIComponent( AUTH_TOKEN ) + "&"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue