From 50e93fed4eb014bf50d739c4656b53343e82c79a Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Thu, 11 Nov 2021 14:07:27 +0100 Subject: [PATCH] Remove load from file button from bioeddie [SCI-6091] (#3656) Co-authored-by: Anton --- app/assets/javascripts/sitewide/bio_eddie.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/assets/javascripts/sitewide/bio_eddie.js b/app/assets/javascripts/sitewide/bio_eddie.js index d4e42fbdd..f163a031e 100644 --- a/app/assets/javascripts/sitewide/bio_eddie.js +++ b/app/assets/javascripts/sitewide/bio_eddie.js @@ -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 = ` + + `; + $(body).append(cssRemoveFileImport); importMolecule(); }; }