diff options
Diffstat (limited to 'static/script.js')
-rw-r--r-- | static/script.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/static/script.js b/static/script.js index 37f86549..7f9291d7 100644 --- a/static/script.js +++ b/static/script.js @@ -457,8 +457,9 @@ function place_in_edit_mode (event) { let summary = popup.getElementsByClassName("summary")[0]; let input = makeElement('input', { - name: "dtstart", - placeholder: summary.innerText, + name: "summary", + value: summary.innerText, + placeholder: "Sammanfattning", required: true, }); @@ -539,7 +540,7 @@ window.onload = function () { let popupElement = document.getElementById("popup" + event.id); open_popup(popupElement); - popupElement.querySelector("input[name='dtstart']").focus(); + popupElement.querySelector("input[name='summary']").focus(); }); } @@ -557,7 +558,7 @@ window.onload = function () { let popupElement = document.getElementById("popup" + event.id); open_popup(popupElement); - popupElement.querySelector("input[name='dtstart']").focus(); + popupElement.querySelector("input[name='summary']").focus(); }); } |