[sagenb] 142/157: Re-enable last new compute cell in live doc

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:52:01 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 77d22df6be5fb118ed2f411272d5df8859d05f59
Author: kcrisman <kcrisman at gmail.com>
Date:   Thu Nov 6 14:17:14 2014 -0500

    Re-enable last new compute cell in live doc
    
    This brings back previous behavior (and removes the text cell icon since we don't want that) in the live doc.
    Note that the only way to get the new cell will be clicking the actual icon, but that is okay in the docbrowser context and can be documented.
---
 sagenb/data/sage/html/notebook/worksheet_page.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sagenb/data/sage/html/notebook/worksheet_page.html b/sagenb/data/sage/html/notebook/worksheet_page.html
index d495db3..5c51510 100644
--- a/sagenb/data/sage/html/notebook/worksheet_page.html
+++ b/sagenb/data/sage/html/notebook/worksheet_page.html
@@ -19,9 +19,11 @@ INPUT:
         <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>
+        {% if not worksheet.docbrowser() %}
         <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>
+        {% endif %}
         <div class="legacy_insert_new_cell" id="legacy_new_last_cell"></div>
     </div>  
     <script type="text/javascript">
@@ -39,11 +41,11 @@ INPUT:
                 rename_worksheet();
             }
          });
-        {% if not worksheet.docbrowser() %}
         $("#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_new_last_text_cell").bind("click", function (e) {
             insert_new_text_cell_after(cell_id_list[cell_id_list.length - 1]);
         });

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