From dfbfda72679b083b31fff2555e1162414e38e89c Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sun, 15 Apr 2018 19:07:38 -0400 Subject: [PATCH] clear add language boxes after submission --- SmearcarDB/static/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SmearcarDB/static/index.js b/SmearcarDB/static/index.js index 785a4e4..b08b274 100644 --- a/SmearcarDB/static/index.js +++ b/SmearcarDB/static/index.js @@ -597,6 +597,8 @@ document.querySelectorAll("#newLanguageSubmit p")[0].onclick = function() { submittable = true; p.innerText = "Submit!"; p.style.backgroundColor = "#FEFEFE"; + document.querySelectorAll("#newLanguageName input")[0].value = ""; + document.querySelectorAll("#newLanguagePhonemes textarea")[0].value = ""; }, 300); getData(); },