JavaScript for this page seems to expect the id set for deletion of attachments to work.