diff options
author | Hannes "Brolaugh" Kindstrommer <me@brolaugh.com> | 2016-03-16 21:53:29 +0100 |
---|---|---|
committer | Hannes "Brolaugh" Kindstrommer <me@brolaugh.com> | 2016-03-16 21:53:29 +0100 |
commit | 72cdc40dab0d3ad4ff05ec063e2daa0f877e8c33 (patch) | |
tree | 3b65d9dbdea6578561f6a9476a2b12b3d7acb8b7 | |
parent | c5fffa6eeca289f37eb2d5ec5e5e81c69c0ad73f (diff) | |
download | tasklist-php-72cdc40dab0d3ad4ff05ec063e2daa0f877e8c33.zip tasklist-php-72cdc40dab0d3ad4ff05ec063e2daa0f877e8c33.tar.gz tasklist-php-72cdc40dab0d3ad4ff05ec063e2daa0f877e8c33.tar.bz2 |
Fixed javascript
Signed-off-by: Hannes "Brolaugh" Kindstrommer <me@brolaugh.com>
-rw-r--r-- | js/master.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/master.js b/js/master.js index 0aaa315..60bd00b 100644 --- a/js/master.js +++ b/js/master.js @@ -14,13 +14,14 @@ function modalFix(task_s, status_s, title_s){ } function changeStatus(){ var xmlhttp = new XMLHttpRequest(); + var user = document.getElementById("modalname").value; xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { $('#statusmodal').modal('hide'); //document.getElementById("feed").innerHTML = xmlhttp.responseText; } }; - xmlhttp.open("POST", "App/formhandlar/changestatus.php", true); + xmlhttp.open("POST", "App/formhandler/changestatus.php", true); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("task="+task+"&status="+status+"&user"+user); } |