JAL-1859 working variable to aid inspection in debugger
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 16 Sep 2015 11:56:17 +0000 (12:56 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 16 Sep 2015 11:56:17 +0000 (12:56 +0100)
examples/javascript/jalview.js

index 7172948..1c1f1c2 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;
        }
 }