[sagenb] 153/179: Expand cell_input_hide cells (%hide) when clicked
felix salfelder
felix-guest at moszumanska.debian.org
Tue May 6 12:05:22 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 3c139d874e140a50d471f5fc6aec3464e21b433c
Author: paulbrou <paul.brouwers at canterbury.ac.nz>
Date: Tue Sep 17 12:16:33 2013 +1200
Expand cell_input_hide cells (%hide) when clicked
https://github.com/sagemath/sagenb/issues/135
---
sagenb/data/sage/js/notebook_lib.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sagenb/data/sage/js/notebook_lib.js b/sagenb/data/sage/js/notebook_lib.js
index 090bb0c..6ce4efa 100644
--- a/sagenb/data/sage/js/notebook_lib.js
+++ b/sagenb/data/sage/js/notebook_lib.js
@@ -357,6 +357,12 @@ function bind_events() {
cell_focused(this, cell_id);
return true;
});
+ $('body').on('focus', 'textarea.cell_input_hide', function () {
+ var id = $(this).attr("id");
+ var cell_id = get_cell_id_from_id(id);
+ cell_focused(this, cell_id);
+ return true;
+ });
$('body').on('blur', 'textarea.cell_input_active', function () {
var id = $(this).attr("id");
var cell_id = get_cell_id_from_id(id);
--
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