video ui update with modernui support

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-09 11:54:58 -04:00
parent 71a18dcf74
commit feca1c653f
4 changed files with 13 additions and 15 deletions
+5 -6
View File
@@ -274,12 +274,11 @@ function submit_framepack(...args) {
}
function submit_video_wrapper(...args) {
log('submitVideoWrapper', args);
if (!args || args.length === 0) {
log('submitVideoWrapper: no args');
return;
}
const btn = gradioApp().getElementById(`${args[0]}_generate_btn`);
const modernEl = gradioApp().querySelector('.video_output.fade-in');
let id = modernEl ? modernEl.id : args[0];
id = id.replace('video-selector-', '');
log('submitVideoWrapper', id);
const btn = gradioApp().getElementById(`${id}_generate_btn`);
if (btn) btn.click();
}