Remove load from file button from bioeddie [SCI-6091] (#3656)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2021-11-11 14:07:27 +01:00 committed by GitHub
parent eb8de58c97
commit 50e93fed4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,8 +91,17 @@ var bioEddieEditor = (function() {
bioEddieModal = $('#bioEddieModal');
if (bioEddieIframe) {
bioEddieIframe.onload = function() {
let body = $(bioEddieIframe).contents().find('body');
BIO_EDDIE = bioEddieIframe.contentWindow.bioEddieEditor;
CHEMAXON = bioEddieIframe.contentWindow.chemaxon;
let cssRemoveFileImport = `
<style>
.breg-modal .breg-import-dialog-tabs li:last-child{
display: none
}
</style>
`;
$(body).append(cssRemoveFileImport);
importMolecule();
};
}