修改base_user

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-11-24 15:29:19 +08:00
parent d7d49d2fbd
commit 6363208781
2 changed files with 1 additions and 3 deletions

View File

@ -30,6 +30,7 @@
$.ajax({
url: '<%= update_score_user_path(:format => 'js') %>',
type: 'get',
beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
data: 'id=<%= @user.id %>',
remote: true
}) ;

View File

@ -457,7 +457,6 @@ function randomKey(size) {
function updateIssueFrom(url) {
$.ajax({
url: url,
beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
type: 'post',
data: $('#issue-form').serialize()
});
@ -466,7 +465,6 @@ function updateIssueFrom(url) {
function updateBulkEditFrom(url) {
$.ajax({
url: url,
beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
type: 'post',
data: $('#bulk_edit_form').serialize()
});
@ -545,7 +543,6 @@ function initMyPageSortable(list, url) {
$.ajax({
url: url,
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');})}
});
}