Merge branch 'develop' into Release_2_9_0b1_Branch
[jalview.git] / examples / javascript / jalview.js
index 7995ddb..407e34a 100644 (file)
@@ -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;
        }
 }