32 const editor = document.getElementById(`comment-editor-${id}`) |
32 const editor = document.getElementById(`comment-editor-${id}`) |
33 const view = document.getElementById(`comment-view-${id}`) |
33 const view = document.getElementById(`comment-view-${id}`) |
34 editor.style.display='block' |
34 editor.style.display='block' |
35 view.style.display='none' |
35 view.style.display='none' |
36 } |
36 } |
|
37 |
|
38 function cancelCommentEditor(id) { |
|
39 const editor = document.getElementById(`comment-editor-${id}`) |
|
40 const view = document.getElementById(`comment-view-${id}`) |
|
41 editor.style.display='none' |
|
42 view.style.display='block' |
|
43 } |