parent
d7d49d2fbd
commit
6363208781
|
@ -30,6 +30,7 @@
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<%= update_score_user_path(:format => 'js') %>',
|
url: '<%= update_score_user_path(:format => 'js') %>',
|
||||||
type: 'get',
|
type: 'get',
|
||||||
|
beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
|
||||||
data: 'id=<%= @user.id %>',
|
data: 'id=<%= @user.id %>',
|
||||||
remote: true
|
remote: true
|
||||||
}) ;
|
}) ;
|
||||||
|
|
|
@ -457,7 +457,6 @@ function randomKey(size) {
|
||||||
function updateIssueFrom(url) {
|
function updateIssueFrom(url) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
|
|
||||||
type: 'post',
|
type: 'post',
|
||||||
data: $('#issue-form').serialize()
|
data: $('#issue-form').serialize()
|
||||||
});
|
});
|
||||||
|
@ -466,7 +465,6 @@ function updateIssueFrom(url) {
|
||||||
function updateBulkEditFrom(url) {
|
function updateBulkEditFrom(url) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
|
|
||||||
type: 'post',
|
type: 'post',
|
||||||
data: $('#bulk_edit_form').serialize()
|
data: $('#bulk_edit_form').serialize()
|
||||||
});
|
});
|
||||||
|
@ -545,7 +543,6 @@ function initMyPageSortable(list, url) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
type: 'post',
|
type: 'post',
|
||||||
beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
|
|
||||||
data: {'blocks': $.map($('#list-'+list).children(), function(el){return $(el).attr('id');})}
|
data: {'blocks': $.map($('#list-'+list).children(), function(el){return $(el).attr('id');})}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue