summaryrefslogtreecommitdiffstats
path: root/js/master.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/master.js')
-rw-r--r--js/master.js4
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);