impress/public/javascripts/ajax_auth.js

10 lines
224 B
JavaScript
Raw Normal View History

2012-01-26 11:30:53 -08:00
(function () {
var csrf_param = $('meta[name=csrf-param]').attr('content'),
csrf_token = $('meta[name=csrf-token]').attr('content'),
data = {};
data[csrf_param] = csrf_token;
$.ajaxSetup({data: data});
})();