[sagenb] 93/157: Use the "Load 3D Live" checkbox
felix salfelder
felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository sagenb.
commit ae2a8375e6a5eb8320410fd3b3580c1d6d9de110
Author: Volker Braun <vbraun.name at gmail.com>
Date: Sun Oct 5 12:18:23 2014 +0100
Use the "Load 3D Live" checkbox
---
sagenb/data/sage/js/jmol_lib.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sagenb/data/sage/js/jmol_lib.js b/sagenb/data/sage/js/jmol_lib.js
index 89179c8..5eb5738 100644
--- a/sagenb/data/sage/js/jmol_lib.js
+++ b/sagenb/data/sage/js/jmol_lib.js
@@ -80,12 +80,11 @@ SageJmolManager.prototype.add_applet =
info.script = 'script ' + script;
info.serverURL = server_url;
info.readyFunction = this.ready_callback.bind(this, applet_name);
+ info.deferApplet = !jQuery('#3D_check').prop('checked');
if (size != 500)
// 500 is the hardcoded (and ill-chosen) default, ignore it
info.width = info.height = size;
- // jmolStatus.jmolInfo[appletID].deferApplet = jQuery('#3D_check').prop('checked');
-
// append container to dom
jQuery('#sage_jmol_' + cell_num).append(
'<div id="'+applet_name+'" style="height:'+size+'px; width:'+size+'px;" >JSmol here</div>'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git
More information about the debian-science-commits
mailing list