Ticket #7385: trac_7385-renaming-published-worksheets.patch

File trac_7385-renaming-published-worksheets.patch, 830 bytes (added by timdumol, 11 years ago)

This makes the check only occur in non-published pages.

  • sagenb/data/sage/html/worksheet/worksheet.html

    # HG changeset patch
    # User Tim Dumol <tim@timdumol.com>
    # Date 1257322666 -28800
    # Node ID 4660544cf8ff0cae43f05b463741c330f0d5adfc
    # Parent  50ac73467de3a933a77a85513dff5a867a2f46a1
    #7385 Renaming "Untitled" published pages
    
    diff -r 50ac73467de3 -r 4660544cf8ff sagenb/data/sage/html/worksheet/worksheet.html
    a b  
    1717$(document).ready(function() {                             
    1818   cell_id_list={{ cell_id_list }};
    1919   state_number={{ state_number }};
    20    if(worksheet_name == "Untitled") rename_worksheet();
     20   {% if not published %}if(worksheet_name == "Untitled") rename_worksheet();{% endif %}
    2121});                     
    2222</script>
    2323{% endif %}