mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 17:24:51 +08:00
Fix bioEddie initialization [SCI-6196] (#3624)
Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
parent
a99599efea
commit
6dea5f17ff
1 changed files with 7 additions and 5 deletions
|
@ -89,11 +89,13 @@ var bioEddieEditor = (function() {
|
|||
$(document).on('turbolinks:load', function() {
|
||||
bioEddieIframe = document.getElementById('bioEddieIframe');
|
||||
bioEddieModal = $('#bioEddieModal');
|
||||
bioEddieIframe.onload = function() {
|
||||
BIO_EDDIE = bioEddieIframe.contentWindow.bioEddieEditor;
|
||||
CHEMAXON = bioEddieIframe.contentWindow.chemaxon;
|
||||
importMolecule();
|
||||
};
|
||||
if (bioEddieIframe) {
|
||||
bioEddieIframe.onload = function() {
|
||||
BIO_EDDIE = bioEddieIframe.contentWindow.bioEddieEditor;
|
||||
CHEMAXON = bioEddieIframe.contentWindow.chemaxon;
|
||||
importMolecule();
|
||||
};
|
||||
}
|
||||
|
||||
bioEddieModal.on('shown.bs.modal', function() {
|
||||
initIframe();
|
||||
|
|
Loading…
Reference in a new issue