diff options
author | Hannes "Brolaugh" Kindströmmer <me@brolaugh.com> | 2016-03-17 00:16:59 +0100 |
---|---|---|
committer | Hannes "Brolaugh" Kindströmmer <me@brolaugh.com> | 2016-03-17 00:16:59 +0100 |
commit | 85776d3e149ee4cd5c98c960468500ad06e6f046 (patch) | |
tree | 76efcc9204df67aa1af5589ec826f85ec15b1ee7 | |
parent | d0ba22a0356eb80fbc72474e98f69dc7c3cf545e (diff) | |
download | tasklist-php-85776d3e149ee4cd5c98c960468500ad06e6f046.zip tasklist-php-85776d3e149ee4cd5c98c960468500ad06e6f046.tar.gz tasklist-php-85776d3e149ee4cd5c98c960468500ad06e6f046.tar.bz2 |
Fixed removing task form text when posted
-rw-r--r-- | js/master.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/master.js b/js/master.js index eaf5866..b177bdd 100644 --- a/js/master.js +++ b/js/master.js @@ -17,7 +17,9 @@ function addTask(){ console.log("Häre är jag!"); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - + document.getElementById("tasktitle").value = ""; + document.getElementById("taskbody").value = ""; + document.getElementById("taskperson").value = ""; } }; xmlhttp.open("POST", "App/formhandler/add_listitem.php", true); |