fix: remove browser-native required validation blocking doc picker submissions

Forms lacked novalidate and textareas had required, so the browser fired
HTML5 validation before tools.js could intercept — blocking submissions
where text came from the doc picker or file upload rather than the textarea.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 00:34:38 +02:00
parent 2e8fda72d2
commit fa42c7223a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ $toolKind = 'Timeline Builder';
$toolBadge = 'process-and-forget';
require_once __DIR__ . '/includes/layout.php';
?>
<form id="toolForm" class="tool-form">
<form id="toolForm" class="tool-form" novalidate>
<div class="lang-switcher" id="timelineLangSwitcher" role="group" aria-label="UI language">
<button type="button" class="lang-btn is-active" data-lang="en">&#127468;&#127463; EN</button>
@@ -87,7 +87,7 @@ require_once __DIR__ . '/includes/layout.php';
</div>
<label class="input-label" for="toolInput" id="inputLabel" data-i18n="timelineInputLabel">Pasted text</label>
<textarea id="toolInput" name="toolInput" rows="10" required data-i18n-placeholder="timelineInputPlaceholder" placeholder="Paste case notes, court decisions, or correspondence containing dates and events."></textarea>
<textarea id="toolInput" name="toolInput" rows="10" data-i18n-placeholder="timelineInputPlaceholder" placeholder="Paste case notes, court decisions, or correspondence containing dates and events."></textarea>
<div id="timelineNotesSection">
<label class="input-label" for="timelineNotes" data-i18n="timelineNotesLabel">Context notes <small class="control-hint">(optional)</small></label>