X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2Fjavascript%2Fjalview.js;h=1c1f1c2cc49107d372441c859122bf24a9e3a83c;hb=refs%2Fheads%2Fgroovy%2FJAL-2074_upgradeto2.4.4;hp=26d87dc7ceeb362ed59784c6aaf7a873397b5ae9;hpb=42d31ef3fe77f0f85d068fee8f54435f1ab4b49f;p=jalview.git diff --git a/examples/javascript/jalview.js b/examples/javascript/jalview.js index 26d87dc..1c1f1c2 100644 --- a/examples/javascript/jalview.js +++ b/examples/javascript/jalview.js @@ -153,7 +153,7 @@ function linkJvJmol(applet, jmolView, modeltofiles) { var sep = applet.getSeparator(); var oldjm=jmolView; // recover full id of Jmol applet - jmolView=jmolFindTarget(jmolView); // Jmol 14.2.14 + jmolView=jmolFindTarget(jmolView)._id; // Jmol 14.2.14 var jmbinding=_jvjmols.get(jmolView); if (!jmbinding) { @@ -318,10 +318,8 @@ function _jmolhover(jmid, atomlabel, atomidx) { } // use atomlabel[5] to look up model filename so we can highlight associated positions in any jalviews for (ap in _jvapps) { - _jvapps[ap].mouseOverStructure(atomlabel[2], atomlabel[3], - getDocumentBase() - + "/" + - modeltofiles[atomlabel[5]]); + pdb = getDocumentBase() + modeltofiles[atomlabel[5]]; + _jvapps[ap].mouseOverStructure(atomlabel[2], atomlabel[3], pdb); msg = _jmolhovermsg; } }