# 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() { |
1217 | 1217 | worksheet_list_button("/send_to_archive"); |
1218 | 1218 | } |
1219 | 1219 | |
1220 | | function quit_worksheets_button() { |
| 1220 | function stop_worksheets_button() { |
1221 | 1221 | /* |
1222 | 1222 | Saves and then quits sage process for each checked worksheet. |
1223 | 1223 | */ |
1224 | | worksheet_list_button("/send_to_quit"); |
| 1224 | worksheet_list_button("/send_to_stop"); |
1225 | 1225 | } |
1226 | 1226 | |
1227 | 1227 | function history_window() { |
diff -r 8410ad6b8435 -r 0d7a666209ea sage/server/notebook/notebook.py
a
|
b
|
class Notebook(SageObject): |
1156 | 1156 | else: |
1157 | 1157 | s += ' <button onClick="make_active_button();" title="Move the selected worksheets out of the trash">Undelete</button>' |
1158 | 1158 | |
1159 | | s += ' <button onClick="quit_worksheets_button();" title="Quit selected worksheets">Quit</button>' |
| 1159 | s += ' <button onClick="stop_worksheets_button();" title="Stop selected worksheets">Stop</button>' |
1160 | 1160 | |
1161 | 1161 | s += '<span>' |
1162 | 1162 | s += ' '*10 |
diff -r 8410ad6b8435 -r 0d7a666209ea sage/server/notebook/twist.py
a
|
b
|
class SendWorksheetToActive(SendWorkshee |
1335 | 1335 | # Using SendWorksheet does feel somewhat hackish. It however is |
1336 | 1336 | # exactly the right thing to actually do, and minimizes code |
1337 | 1337 | # duplication. |
1338 | | class SendWorksheetToQuit(SendWorksheetToFolder): |
| 1338 | class SendWorksheetToStop(SendWorksheetToFolder): |
1339 | 1339 | """ |
1340 | 1340 | Saves and quits each selected worksheet. |
1341 | 1341 | """ |
… |
… |
class UserToplevel(Toplevel): |
1843 | 1843 | userchild_send_to_trash = SendWorksheetToTrash |
1844 | 1844 | userchild_send_to_archive = SendWorksheetToArchive |
1845 | 1845 | userchild_send_to_active = SendWorksheetToActive |
1846 | | userchild_send_to_quit = SendWorksheetToQuit |
| 1846 | userchild_send_to_stop = SendWorksheetToStop |
1847 | 1847 | |
1848 | 1848 | userchild_settings = UserSettings |
1849 | 1849 | |