Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Merge requests
!3
use iframeId as it has as value `marviniframe`
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
use iframeId as it has as value `marviniframe`
marvinjs-reusable
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Bryan BRANCOTTE
requested to merge
marvinjs-reusable
into
master
6 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 1
bf1ba363
6 years ago
master (base)
and
latest version
latest version
bf1ba363
1 commit,
6 years ago
version 1
bf1ba363
1 commit,
6 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ippisite/ippidb/static/js/ippidb-marvinjsmodal.js
+
3
−
3
Options
@@ -6,7 +6,7 @@ class MarvinModal {
this
.
textAreaEl
=
$
(
'
#
'
+
textAreaId
);
this
.
exportCallback
=
exportCallback
;
this
.
marvinSketcherInstance
=
null
;
MarvinJSUtil
.
getEditor
(
"
marvin
iframe
"
).
then
(
function
(
sketcherInstance
)
{
MarvinJSUtil
.
getEditor
(
iframe
Id
).
then
(
function
(
sketcherInstance
)
{
this
.
marvinSketcherInstance
=
sketcherInstance
;
this
.
marvinSketcherInstance
.
on
(
'
molchange
'
,
function
(){
this
.
exportSmiles
(
function
(
smilesString
){
@@ -17,8 +17,8 @@ class MarvinModal {
this
.
modalEl
.
on
(
'
shown.bs.modal
'
,
function
(){
//NB: this must be setup only once the modal is shown otherwise
// it doesn't work with Firefox (see https://bugzilla.mozilla.org/show_bug.cgi?id=941146)
var
query
=
$
(
'
#marvin
iframe
'
)
.
attr
(
'
data-smiles
'
);
var
fingerprint
=
$
(
'
#marvin
iframe
'
)
.
attr
(
'
data-fingerprint
'
);
var
query
=
this
.
iframe
El
.
attr
(
'
data-smiles
'
);
var
fingerprint
=
this
.
iframe
El
.
attr
(
'
data-fingerprint
'
);
$
(
"
input[name=fingerprint][value=
"
+
fingerprint
+
"
]
"
).
attr
(
'
checked
'
,
'
checked
'
)
this
.
importSmiles
(
query
);
this
.
textAreaEl
.
val
(
query
);
Loading