##// END OF EJS Templates
Wired the rest of the toolbar buttons up to actions.
Brian Granger -
Show More
@@ -72,6 +72,36 var IPython = (function (IPython) {
72
72
73
73
74 ToolBar.prototype.bind_events = function () {
74 ToolBar.prototype.bind_events = function () {
75 this.element.find('#save_b').click(function () {
76 IPython.save_widget.save_notebook();
77 });
78 this.element.find('#cut_b').click(function () {
79 IPython.notebook.cut_cell();
80 });
81 this.element.find('#copy_b').click(function () {
82 IPython.notebook.copy_cell();
83 });
84 this.element.find('#paste_b').click(function () {
85 IPython.notebook.paste_cell();
86 });
87 this.element.find('#move_up_b').click(function () {
88 IPython.notebook.move_cell_up();
89 });
90 this.element.find('#move_down_b').click(function () {
91 IPython.notebook.move_cell_down();
92 });
93 this.element.find('#insert_above_b').click(function () {
94 IPython.notebook.insert_cell_above('code');
95 });
96 this.element.find('#insert_below_b').click(function () {
97 IPython.notebook.insert_cell_below('code');
98 });
99 this.element.find('#run_b').click(function () {
100 IPython.notebook.execute_selected_cell();
101 });
102 this.element.find('#interrupt_b').click(function () {
103 IPython.notebook.kernel.interrupt();
104 });
75 this.element.find('#cell_type').change(function () {
105 this.element.find('#cell_type').change(function () {
76 var cell_type = $(this).val();
106 var cell_type = $(this).val();
77 if (cell_type === 'code') {
107 if (cell_type === 'code') {
General Comments 0
You need to be logged in to leave comments. Login now