Fix wrong ID in VFS select customfield handler

This commit is contained in:
nathan 2024-10-22 10:49:48 -06:00
parent 8a145744a1
commit 4333429602

View File

@ -958,8 +958,8 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
{
document.querySelectorAll('et2-link-list').forEach(l => {l.get_links();});
const info = e.target._dialog.fileInfo(e.target.value);
e.target.getParent().getWidgetById("#filemanager")?._addFile(info);
e.target.getParent().getWidgetById("#filemanager").getDOMNode().classList.remove("hideme");
e.target.getParent().getWidgetById(attrs.id)?._addFile(info);
e.target.getParent().getWidgetById(attrs.id).getDOMNode().classList.remove("hideme");
});
jQuery(widget.getDOMNode(widget)).css('vertical-align','top').prependTo(cf);
}