Ticket #2884: sage-2884.patch

File sage-2884.patch, 891 bytes (added by was, 13 years ago)
  • sage/server/notebook/js.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1210494110 25200
    # Node ID 83531e2a029ec031c928a24e3e95ed556f846ec2
    # Parent  3e870d7bb73320d61deea4fabe7419aedb048cfd
    trac #2884 -- notebook -- bug; @interact cell eval doesn't clear out the old html output (easy to fix?)
    
    diff -r 3e870d7bb733 -r 83531e2a029e sage/server/notebook/js.py
    a b function interact(id, input) { 
    36223622    cell_has_changed = false;
    36233623    current_cell = id;
    36243624
     3625    // Delete the old images, etc., that might be sitting
     3626    // in the output from the previos evaluation of this cell.
     3627    get_element('cell_output_html_' + id).innerHTML = "";
     3628
    36253629    var cell_number = get_element('cell_number_' + id);
    36263630    cell_number.className = 'cell_number_running';
    36273631