Prevent double confirm box when deleting attachments