Mon, 09 Aug 2021 16:28:42 +0200
adds changelog entries
universe@207 | 1 | /* |
universe@207 | 2 | * Copyright 2021 Mike Becker. All rights reserved. |
universe@207 | 3 | * |
universe@207 | 4 | * Redistribution and use in source and binary forms, with or without |
universe@207 | 5 | * modification, are permitted provided that the following conditions are met: |
universe@207 | 6 | * |
universe@207 | 7 | * 1. Redistributions of source code must retain the above copyright |
universe@207 | 8 | * notice, this list of conditions and the following disclaimer. |
universe@207 | 9 | * |
universe@207 | 10 | * 2. Redistributions in binary form must reproduce the above copyright |
universe@207 | 11 | * notice, this list of conditions and the following disclaimer in the |
universe@207 | 12 | * documentation and/or other materials provided with the distribution. |
universe@207 | 13 | * |
universe@207 | 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@207 | 15 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@207 | 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
universe@207 | 17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
universe@207 | 18 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
universe@207 | 19 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
universe@207 | 20 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
universe@207 | 21 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
universe@207 | 22 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
universe@207 | 23 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
universe@207 | 24 | */ |
universe@207 | 25 | |
universe@207 | 26 | /** |
universe@207 | 27 | * Replaces the formatted comment text with an text area. |
universe@207 | 28 | * |
universe@207 | 29 | * @param {number} id the ID of the comment |
universe@207 | 30 | */ |
universe@207 | 31 | function showCommentEditor(id) { |
universe@207 | 32 | const editor = document.getElementById(`comment-editor-${id}`) |
universe@207 | 33 | const view = document.getElementById(`comment-view-${id}`) |
universe@207 | 34 | editor.style.display='block' |
universe@207 | 35 | view.style.display='none' |
universe@207 | 36 | } |