removed enter
This commit is contained in:
@@ -319,6 +319,14 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
});
|
});
|
||||||
// --- End drag-and-swap logic ---
|
// --- End drag-and-swap logic ---
|
||||||
|
|
||||||
|
// block enter key
|
||||||
|
document.getElementById('boardForm').addEventListener('keydown', function (event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// end of block enter key
|
||||||
|
|
||||||
// On submit, copy preview lines to hidden fields
|
// On submit, copy preview lines to hidden fields
|
||||||
const boardForm = document.getElementById('boardForm');
|
const boardForm = document.getElementById('boardForm');
|
||||||
if (boardForm) {
|
if (boardForm) {
|
||||||
|
|||||||
@@ -258,6 +258,14 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
});
|
});
|
||||||
// --- End drag-and-swap logic ---
|
// --- End drag-and-swap logic ---
|
||||||
|
|
||||||
|
// block enter key
|
||||||
|
document.getElementById('scheduleForm').addEventListener('keydown', function (event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// end of block enter key
|
||||||
|
|
||||||
document.getElementById('scheduleForm').addEventListener('submit', function(e) {
|
document.getElementById('scheduleForm').addEventListener('submit', function(e) {
|
||||||
// Copy content from editable divs to hidden inputs
|
// Copy content from editable divs to hidden inputs
|
||||||
for (let i = 1; i <= 10; i++) {
|
for (let i = 1; i <= 10; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user