[sagenb] 83/157: Icons for add compute cell or text cell to end of worksheet
felix salfelder
felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:54 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 2757d2c6b488feeae2a3f97fffdd09f7ffe5ef01
Author: gutow <gutow at uwosh.edu>
Date: Wed Apr 9 15:24:29 2014 -0500
Icons for add compute cell or text cell to end of worksheet
---
sagenb/data/sage/html/notebook/worksheet_page.html | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/sagenb/data/sage/html/notebook/worksheet_page.html b/sagenb/data/sage/html/notebook/worksheet_page.html
index cef89a6..db72b59 100644
--- a/sagenb/data/sage/html/notebook/worksheet_page.html
+++ b/sagenb/data/sage/html/notebook/worksheet_page.html
@@ -13,7 +13,14 @@ INPUT:
{% set toggle=true %}
<div class="worksheet" id="worksheet">
{{ worksheet.html(username=username) }}
- <div class="insert_new_cell" id="insert_last_cell"></div>
+ <div class="insert_new_cell" id="insert_last_cell">
+ <div class="ui-icon ui-icon-circle-plus wksht-icon_button"
+ id="insert_new_last_compute_cell"
+ title="{{ gettext('Click to insert new compute cell.') }}"></div>
+ <div class="ui-icon ui-icon-comment wksht-icon_button"
+ id="insert_new_last_text_cell"
+ title="{{ gettext('Click to insert new rich-text cell.') }}"></div>
+ </div>
<script type="text/javascript">
state_number = {{ worksheet.state_number() }};
cell_id_list = {{ worksheet.cell_id_list() }};
@@ -30,12 +37,12 @@ INPUT:
}
});
- $("#insert_last_cell").bind("plainclick", function (e) {
+ $("#insert_new_last_compute_cell").bind("click", function (e) {
insert_new_cell_after(cell_id_list[cell_id_list.length - 1]);
});
{% if not worksheet.docbrowser() %}
- $("#insert_last_cell").bind("shiftclick", function (e) {
+ $("#insert_new_last_text_cell").bind("click", function (e) {
insert_new_text_cell_after(cell_id_list[cell_id_list.length - 1]);
});
{% endif %}
--
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