Ticket #1230: sage-1230-part3.patch

File sage-1230-part3.patch, 2.4 KB (added by was, 13 years ago)

Quit --> Stop as recommended by referee

  • sage/server/notebook/js.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1210467703 25200
    # Node ID 0d7a666209ea6039e41c58e715774ee7c62e617c
    # Parent  8410ad6b8435376100f1a12a2e516a8909256c96
    trac #1230; part 3; change a button from "quit" to "stop"
    
    diff -r 8410ad6b8435 -r 0d7a666209ea sage/server/notebook/js.py
    a b function archive_button() { 
    12171217    worksheet_list_button("/send_to_archive");
    12181218}     
    12191219
    1220 function quit_worksheets_button() {
     1220function stop_worksheets_button() {
    12211221    /*
    12221222    Saves and then quits sage process for each checked worksheet.
    12231223    */
    1224     worksheet_list_button("/send_to_quit");
     1224    worksheet_list_button("/send_to_stop");
    12251225}
    12261226
    12271227function history_window() {
  • sage/server/notebook/notebook.py

    diff -r 8410ad6b8435 -r 0d7a666209ea sage/server/notebook/notebook.py
    a b class Notebook(SageObject): 
    11561156            else:
    11571157                s += '&nbsp;&nbsp;<button onClick="make_active_button();" title="Move the selected worksheets out of the trash">Undelete</button>'
    11581158
    1159             s += '&nbsp;&nbsp;<button onClick="quit_worksheets_button();" title="Quit selected worksheets">Quit</button>'
     1159            s += '&nbsp;&nbsp;<button onClick="stop_worksheets_button();" title="Stop selected worksheets">Stop</button>'
    11601160           
    11611161            s += '<span>'
    11621162            s += '&nbsp;'*10
  • sage/server/notebook/twist.py

    diff -r 8410ad6b8435 -r 0d7a666209ea sage/server/notebook/twist.py
    a b class SendWorksheetToActive(SendWorkshee 
    13351335# Using SendWorksheet does feel somewhat hackish.  It however is
    13361336# exactly the right thing to actually do, and minimizes code
    13371337# duplication.
    1338 class SendWorksheetToQuit(SendWorksheetToFolder):
     1338class SendWorksheetToStop(SendWorksheetToFolder):
    13391339    """
    13401340    Saves and quits each selected worksheet.
    13411341    """
    class UserToplevel(Toplevel): 
    18431843    userchild_send_to_trash = SendWorksheetToTrash
    18441844    userchild_send_to_archive = SendWorksheetToArchive
    18451845    userchild_send_to_active = SendWorksheetToActive
    1846     userchild_send_to_quit = SendWorksheetToQuit
     1846    userchild_send_to_stop = SendWorksheetToStop
    18471847
    18481848    userchild_settings = UserSettings
    18491849