##// END OF EJS Templates
add 'Close and halt' in notebook filemenu
Matthias BUSSONNIER -
Show More
@@ -68,6 +68,10 b' var IPython = (function (IPython) {'
68 this.element.find('button#print_notebook').click(function () {
68 this.element.find('button#print_notebook').click(function () {
69 IPython.print_widget.print_notebook();
69 IPython.print_widget.print_notebook();
70 });
70 });
71 this.element.find('#kill_and_exit').click(function () {
72 IPython.notebook.kernel.kill();
73 setTimeout(function(){window.close();}, 200);
74 });
71 // Edit
75 // Edit
72 this.element.find('#cut_cell').click(function () {
76 this.element.find('#cut_cell').click(function () {
73 IPython.notebook.cut_cell();
77 IPython.notebook.cut_cell();
@@ -65,6 +65,8 b' data-notebook-id={{notebook_id}}'
65 </li>
65 </li>
66 <hr/>
66 <hr/>
67 <li id="print_notebook"><a href="/{{notebook_id}}/print" target="_blank">Print View</a></li>
67 <li id="print_notebook"><a href="/{{notebook_id}}/print" target="_blank">Print View</a></li>
68 <hr/>
69 <li id="kill_and_exit"><a href="#" >Close and halt</a></li>
68 </ul>
70 </ul>
69 </li>
71 </li>
70 <li><a href="#">Edit</a>
72 <li><a href="#">Edit</a>
General Comments 0
You need to be logged in to leave comments. Login now