Skip to content

Commit

Permalink
workspace saving: hide div#saveworkspace instead of only hidding subm…
Browse files Browse the repository at this point in the history
…it button when JS is on
  • Loading branch information
vincent-peugnet committed Nov 2, 2024
1 parent e744ea7 commit a9aa9f8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fn/fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,9 @@ export function initWorkspaceForm() {
for (const input of inputs) {
input.oninput = workspaceChanged;
}
let submits = form.querySelectorAll('[type="submit"]');
for (const submit of submits) {
if (submit instanceof HTMLElement) {
submit.style.display = 'none';
}
let saveworkspace = document.getElementById('save-workspace');
if (saveworkspace instanceof HTMLElement) {
saveworkspace.style.display = 'none';
}

form.addEventListener('submit', function(event) {
Expand Down

0 comments on commit a9aa9f8

Please sign in to comment.