diff --git a/static/script.js b/static/script.js index d13bc57..99a363b 100644 --- a/static/script.js +++ b/static/script.js @@ -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(){ diff --git a/templates/show_shop.html b/templates/show_shop.html index 4ff0fe9..ccc4d12 100644 --- a/templates/show_shop.html +++ b/templates/show_shop.html @@ -28,6 +28,7 @@
+

@@ -68,7 +69,7 @@
Edit content file:

- +