connect close_and_halt via id_actions_dict

This commit is contained in:
Mac Knight 2018-02-07 11:56:40 -05:00
parent 8888fa4e07
commit f5d59ca004
2 changed files with 2 additions and 5 deletions

View File

@ -231,10 +231,6 @@ define([
} }
}); });
this.element.find('#kill_and_exit').click(function () {
that.notebook.close_and_halt();
});
// View // View
this._add_celltoolbar_list(); this._add_celltoolbar_list();
@ -254,6 +250,7 @@ define([
'#restart_kernel': 'confirm-restart-kernel', '#restart_kernel': 'confirm-restart-kernel',
'#restart_clear_output': 'confirm-restart-kernel-and-clear-output', '#restart_clear_output': 'confirm-restart-kernel-and-clear-output',
'#restart_run_all': 'confirm-restart-kernel-and-run-all-cells', '#restart_run_all': 'confirm-restart-kernel-and-run-all-cells',
'#close_and_halt': 'close-and-halt',
'#int_kernel': 'interrupt-kernel', '#int_kernel': 'interrupt-kernel',
'#cut_cell': 'cut-cell', '#cut_cell': 'cut-cell',
'#copy_cell': 'copy-cell', '#copy_cell': 'copy-cell',

View File

@ -124,7 +124,7 @@ data-notebook-path="{{notebook_path | urlencode}}"
title="{% trans %}Trust the output of this notebook{% endtrans %}"> title="{% trans %}Trust the output of this notebook{% endtrans %}">
<a href="#" >{% trans %}Trust Notebook{% endtrans %}</a></li> <a href="#" >{% trans %}Trust Notebook{% endtrans %}</a></li>
<li class="divider"></li> <li class="divider"></li>
<li id="kill_and_exit" <li id="close_and_halt"
title="{% trans %}Shutdown this notebook's kernel, and close this window{% endtrans %}"> title="{% trans %}Shutdown this notebook's kernel, and close this window{% endtrans %}">
<a href="#" >{% trans %}Close and Halt{% endtrans %}</a></li> <a href="#" >{% trans %}Close and Halt{% endtrans %}</a></li>
</ul> </ul>