diff --git a/notebook/static/notebook/js/menubar.js b/notebook/static/notebook/js/menubar.js index 2471be55e..2deddb984 100644 --- a/notebook/static/notebook/js/menubar.js +++ b/notebook/static/notebook/js/menubar.js @@ -196,46 +196,46 @@ define([ }); var id_actions_dict = { - '#trust_notebook' : 'jupyter-notebook:trust-notebook', - '#rename_notebook' : 'jupyter-notebook:rename-notebook', - '#find_and_replace' : 'jupyter-notebook:find-and-replace', - '#save_checkpoint': 'jupyter-notebook:save-notebook', - '#restart_kernel': 'jupyter-notebook:confirm-restart-kernel', - '#restart_clear_output': 'jupyter-notebook:confirm-restart-kernel-and-clear-output', - '#restart_run_all': 'jupyter-notebook:confirm-restart-kernel-and-run-all-cells', - '#int_kernel': 'jupyter-notebook:interrupt-kernel', - '#cut_cell': 'jupyter-notebook:cut-cell', - '#copy_cell': 'jupyter-notebook:copy-cell', - '#delete_cell': 'jupyter-notebook:delete-cell', - '#undelete_cell': 'jupyter-notebook:undo-cell-deletion', - '#split_cell': 'jupyter-notebook:split-cell-at-cursor', - '#merge_cell_above': 'jupyter-notebook:merge-cell-with-previous-cell', - '#merge_cell_below': 'jupyter-notebook:merge-cell-with-next-cell', - '#move_cell_up': 'jupyter-notebook:move-cell-up', - '#move_cell_down': 'jupyter-notebook:move-cell-down', - '#toggle_header': 'jupyter-notebook:toggle-header', - '#toggle_toolbar': 'jupyter-notebook:toggle-toolbar', - '#insert_cell_above': 'jupyter-notebook:insert-cell-above', - '#insert_cell_below': 'jupyter-notebook:insert-cell-below', - '#run_cell': 'jupyter-notebook:run-cell', - '#run_cell_select_below': 'jupyter-notebook:run-cell-and-select-next', - '#run_cell_insert_below': 'jupyter-notebook:run-cell-and-insert-below', - '#run_all_cells': 'jupyter-notebook:run-all-cells', - '#run_all_cells_above': 'jupyter-notebook:run-all-cells-above', - '#run_all_cells_below': 'jupyter-notebook:run-all-cells-below', - '#to_code': 'jupyter-notebook:change-cell-to-code', - '#to_markdown': 'jupyter-notebook:change-cell-to-markdown', - '#to_raw': 'jupyter-notebook:change-cell-to-raw', - '#toggle_current_output': 'jupyter-notebook:toggle-cell-output-visibility', - '#toggle_current_output_scroll': 'jupyter-notebook:toggle-cell-output-scrolling', - '#clear_current_output': 'jupyter-notebook:clear-cell-output', + '#trust_notebook' : 'trust-notebook', + '#rename_notebook' : 'rename-notebook', + '#find_and_replace' : 'find-and-replace', + '#save_checkpoint': 'save-notebook', + '#restart_kernel': 'confirm-restart-kernel', + '#restart_clear_output': 'confirm-restart-kernel-and-clear-output', + '#restart_run_all': 'confirm-restart-kernel-and-run-all-cells', + '#int_kernel': 'interrupt-kernel', + '#cut_cell': 'cut-cell', + '#copy_cell': 'copy-cell', + '#delete_cell': 'delete-cell', + '#undelete_cell': 'undo-cell-deletion', + '#split_cell': 'split-cell-at-cursor', + '#merge_cell_above': 'merge-cell-with-previous-cell', + '#merge_cell_below': 'merge-cell-with-next-cell', + '#move_cell_up': 'move-cell-up', + '#move_cell_down': 'move-cell-down', + '#toggle_header': 'toggle-header', + '#toggle_toolbar': 'toggle-toolbar', + '#insert_cell_above': 'insert-cell-above', + '#insert_cell_below': 'insert-cell-below', + '#run_cell': 'run-cell', + '#run_cell_select_below': 'run-cell-and-select-next', + '#run_cell_insert_below': 'run-cell-and-insert-below', + '#run_all_cells': 'run-all-cells', + '#run_all_cells_above': 'run-all-cells-above', + '#run_all_cells_below': 'run-all-cells-below', + '#to_code': 'change-cell-to-code', + '#to_markdown': 'change-cell-to-markdown', + '#to_raw': 'change-cell-to-raw', + '#toggle_current_output': 'toggle-cell-output-visibility', + '#toggle_current_output_scroll': 'toggle-cell-output-scrolling', + '#clear_current_output': 'clear-cell-output', }; for(var idx in id_actions_dict){ if (!id_actions_dict.hasOwnProperty(idx)){ continue; } - var id_act = id_actions_dict[idx]; + var id_act = 'jupyter-notebook:'+id_actions_dict[idx]; if(!that.actions.exists(id_act)){ console.warn('actions', id_act, 'does not exist, still binding it in case it will be defined later...'); }