add date for item adder

This commit is contained in:
ville rantanen
2017-06-13 13:48:42 +03:00
parent cb7ef1ad99
commit edc41be7e2
2 changed files with 5 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
function insertAtEnd(myField, myValue) {
myField.value += myValue;
}
function insertDate() {
insertAtEnd(document.getElementById("edit_md"),"\n[ ] "+getDate()+" ");
function insertDate(idName) {
insertAtEnd(document.getElementById(idName),"\n"+getDate()+" ");
growTextarea(idName)
}
function getDate(){