JAL-1645 Version-Rel Version 2.9 Year-Rel 2015 Licensing glob
[jalview.git] / examples / javascript / jalview.js
index 31698b6..7995ddb 100644 (file)
@@ -1,6 +1,6 @@
 /**
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -153,7 +153,7 @@ function linkJvJmol(applet, jmolView, modeltofiles) {
                var sep = applet.getSeparator();
                var oldjm=jmolView;
                // recover full id of Jmol applet
-               jmolView=_jmolGetApplet(jmolView).id;
+               jmolView=jmolFindTarget(jmolView)._id; // Jmol 14.2.14
                var jmbinding=_jvjmols.get(jmolView);
                if (!jmbinding)
                {       
@@ -355,7 +355,7 @@ function _jmolMessagecallback(jmid, statmess) {
        var jvfollower = document.getElementById("jvfollower");
        //console.log(">>>>>>>> lJvApp" + jvapp);
        linkJvJmol(jvapp);
-    }, 100);
+    }, 200);
     setConsole(document.getElementById("stdout"));
   };
 
@@ -366,7 +366,7 @@ function _jmolMessagecallback(jmid, statmess) {
        var jvfollower = document.getElementById("jvfollower");
        console.log(">>>>>>> lJvFollow" + jvfollower);
        linkJvJmol(jvfollower);
-    }, 100);
+    }, 200);
   };
 
   function lJvA() {