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);
=h($err)?>
Videos without input dir
No orphan videos.
=page_links('videos',$videoPage,$videoPages)?>
-Existing input dirs
No input directories yet.
No video yet=h($meta['title'] ?: ($info['title'] ?? basename($d)))?>
=h($meta['date'])?>=h($meta['location'])?>No videoPreview video
=nl2br(h($meta['description']), false)?>
=h(basename($d))?> · =h($info['file_count'] ?? count(list_files($d)))?> files
=page_links('edit',$editPage,$editPages)?>
+Existing input dirs
No input directories yet.
No video yet=h($meta['title'] ?: ($info['title'] ?? basename($d)))?>
=h($meta['date'])?>=h($meta['location'])?>No videoPreview video
=nl2br(h($meta['description']), false)?>
=h(basename($d))?> · =h($info['file_count'] ?? count(list_files($d)))?> files
=page_links('edit',$editPage,$editPages)?>
Edit input dir
in-dir/=h(basename($editDir))?>
This input directory is =h($editStatus)?>. Editing is disabled until the job completes.
@@ -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);