Sat, 09 Nov 2024 10:54:57 +0100
add cancel button to comment editor - fixes #455
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Sat Nov 09 10:08:10 2024 +0100 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Sat Nov 09 10:54:57 2024 +0100 @@ -27,6 +27,7 @@ <h3>Version 1.4.0 (Vorschau)</h3> <ul> + <li>Abbrechen-Button zum Kommentar-Editor hinzugefügt.</li> <li>Die Vorgangsliste zeigt nun die Komponente, wenn kein Filter auf Komponenten aktiv ist.</li> <li>Vorgangsstatus zur Vorschlagsliste für das Erstellen einer Vorgangsbeziehung hinzugefügt.</li> <li>Verbesserte Anordnung der Buttons zum Erstellen neuer Versionen oder Komponenten.</li>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf Sat Nov 09 10:08:10 2024 +0100 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Sat Nov 09 10:54:57 2024 +0100 @@ -27,6 +27,7 @@ <h3>Version 1.4.0 (snapshot)</h3> <ul> + <li>Add cancel button to comment editor.</li> <li>Add component tag to issue list when no component filter is active.</li> <li>Add issue status to the suggestions for creating an issue relation.</li> <li>Add project names to the entries of the global RSS feed.</li>
--- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp Sat Nov 09 10:08:10 2024 +0100 +++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp Sat Nov 09 10:54:57 2024 +0100 @@ -322,6 +322,7 @@ <tfoot> <tr> <td> + <button type="reset" onclick="cancelCommentEditor(${comment.id})"><fmt:message key="button.cancel"/></button> <button type="submit"><fmt:message key="button.comment.edit"/></button> </td> </tr>
--- a/src/main/webapp/issue-editor.js Sat Nov 09 10:08:10 2024 +0100 +++ b/src/main/webapp/issue-editor.js Sat Nov 09 10:54:57 2024 +0100 @@ -34,3 +34,10 @@ editor.style.display='block' view.style.display='none' } + +function cancelCommentEditor(id) { + const editor = document.getElementById(`comment-editor-${id}`) + const view = document.getElementById(`comment-view-${id}`) + editor.style.display='none' + view.style.display='block' +}