diff --git a/new.php b/new.php index cbfc9f0..2ced4a7 100644 --- a/new.php +++ b/new.php @@ -450,7 +450,7 @@ $runningJobs = active_worker_jobs($config);

Videos without input dir

No orphan videos.


MB
-

Existing input dirs

No input directories yet.

No video yet
RenderingEdit

No videoPreview video

· files

+

Existing input dirs

No input directories yet.

No video yet
RenderingEdit

No videoPreview video

· files

Edit input dir

in-dir/

This input directory is . Editing is disabled until the job completes.

Edit input dir

in-dir/

Files and captions

No caption for audio files

Add new movie input

@@ -555,6 +555,19 @@ document.querySelectorAll('.admin-switches input[type="checkbox"]').forEach(func } const action=data.get('action'); const titleEl=input.closest('.video-info')?.querySelector('h2'); + const editBtn=row?.querySelector('[data-edit-action="1"]'); + if(editBtn && (json.running || json.status==='processing' || json.disabled || json.rendering || json.busy || json.ok===true && data.get('action') && data.get('action')!=='set_visible')){ + if(editBtn.tagName === 'A'){ + if(!editBtn.dataset.editHref) editBtn.dataset.editHref = editBtn.getAttribute('href') || ''; + editBtn.removeAttribute('href'); + editBtn.classList.add('disabled'); + editBtn.setAttribute('aria-disabled','true'); + editBtn.title='Rendering now'; + } else { + editBtn.classList.add('disabled'); + editBtn.title='Rendering now'; + } + } const title=(titleEl?.textContent || '').trim() || json.dir || data.get('dir') || 'input dir'; const quotedTitle="'" + title + "'";if(action==='set_visible') showToast((input.checked?'Shown: ':'Hidden: ')+quotedTitle, true); else if(action==='set_enabled') showToast((input.checked?'Run enabled: ':'Run disabled: ')+quotedTitle, true);