Navigation Menu

Skip to content

Commit

Permalink
Security update, GET -> POST
Browse files Browse the repository at this point in the history
  • Loading branch information
AeroNotix committed May 14, 2012
1 parent f743568 commit 4da066a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions timetracker/static/js/editprofile.js
Expand Up @@ -55,20 +55,20 @@ function submitChanges () {


$.ajaxSetup({
"type": "POST",
"url": "/ajax",
"dataType": "json",
"data": {
type: "POST"
});

$.ajax({
url: "/ajax/",
dataType: "json",
data: {
"form_type": "profileedit",
"firstname": $("#id-firstname").val(),
"lastname": $("#id-lastname").val(),
"password": $("#id-password").val()
}
});

$.ajax({
},
success: function(data) {
$("#edit-profile-wrapper")
$("#edit-profile-wrapper")
.fadeTo(500, 0, function () {
$("#edit-profile-wrapper")
.load("/edit_profile/ #edit-profile-table",
Expand Down

0 comments on commit 4da066a

Please sign in to comment.