Merge branch 'features/JAL-857_dynamic-example-files' into develop
[jalview.git] / examples / javascript / jalview.js
index 31698b6..fa08a4d 100644 (file)
@@ -153,7 +153,8 @@ function linkJvJmol(applet, jmolView, modeltofiles) {
                var sep = applet.getSeparator();
                var oldjm=jmolView;
                // recover full id of Jmol applet
-               jmolView=_jmolGetApplet(jmolView).id;
+//             jmolView=_jmolGetApplet(jmolView).id; // Jmol 12.4
+               jmolView=jmolFindTarget(jmolView).id; // Jmol 14.2.14
                var jmbinding=_jvjmols.get(jmolView);
                if (!jmbinding)
                {       
@@ -355,7 +356,7 @@ function _jmolMessagecallback(jmid, statmess) {
        var jvfollower = document.getElementById("jvfollower");
        //console.log(">>>>>>>> lJvApp" + jvapp);
        linkJvJmol(jvapp);
-    }, 100);
+    }, 200);
     setConsole(document.getElementById("stdout"));
   };
 
@@ -366,7 +367,7 @@ function _jmolMessagecallback(jmid, statmess) {
        var jvfollower = document.getElementById("jvfollower");
        console.log(">>>>>>> lJvFollow" + jvfollower);
        linkJvJmol(jvfollower);
-    }, 100);
+    }, 200);
   };
 
   function lJvA() {