[sagenb] 100/157: text hint to use right-click menu on live 3-D applet

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:56 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 35c9eb18994ff6fdd6f691a55bf8ac7a38044f69
Author: gutow <gutow at uwosh.edu>
Date:   Thu Oct 16 20:21:07 2014 -0500

    text hint to use right-click menu on live 3-D applet
---
 sagenb/data/sage/js/jmol_lib.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sagenb/data/sage/js/jmol_lib.js b/sagenb/data/sage/js/jmol_lib.js
index 34c913d..d3ff68c 100644
--- a/sagenb/data/sage/js/jmol_lib.js
+++ b/sagenb/data/sage/js/jmol_lib.js
@@ -59,6 +59,7 @@ SageJmolManager.prototype.ready_callback = function (name, applet) {
     this._lru_names.push(name);
     Jmol.script(applet, "set platformSpeed 6;");
     this.enforce_limit();
+    jQuery('#'+name).parent().append('<div id="'+name+'_hint">Right-click to get options menu.</div>');
 };
 
 // Get the most recently used applet names
@@ -87,6 +88,7 @@ SageJmolManager.prototype.enforce_limit = function() {
         var applet = this._applets[name];
         console.log('Covening applet ' + name);
         Jmol.coverApplet(applet, true);
+        jQuery('#'+name+'_hint').remove();
     }
 };
 

-- 
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