feat: implement CMS-style inline editing with dynamic contract loading on the intervention detail page
This commit is contained in:
parent
526c8185fa
commit
3d55121fbc
1 changed files with 2 additions and 1 deletions
|
|
@ -509,6 +509,7 @@
|
|||
|
||||
// Intercept form submissions to auto-save before submitting
|
||||
document.addEventListener('submit', async function(e) {
|
||||
if (e.defaultPrevented) return;
|
||||
if (!isEditMode || isSubmittingAutoSavedForm || isAutoSavingAndNavigating) return;
|
||||
|
||||
const form = e.target;
|
||||
|
|
@ -531,7 +532,7 @@
|
|||
console.error('Auto-save form submit error:', err);
|
||||
isAutoSavingAndNavigating = false;
|
||||
}
|
||||
}, true);
|
||||
});
|
||||
|
||||
// Background auto-save on tab close / browser reload without showing alert
|
||||
function sendKeepAliveSave() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue