mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
New Terminal into new new button
This commit is contained in:
parent
7c7da54699
commit
12fe7823ad
@ -38,7 +38,7 @@ define([
|
||||
$('#refresh_' + this.element_name + '_list').click(function () {
|
||||
that.load_terminals();
|
||||
});
|
||||
$('#new_terminal').click($.proxy(this.new_terminal, this));
|
||||
$('#new-terminal').click($.proxy(this.new_terminal, this));
|
||||
};
|
||||
|
||||
TerminalList.prototype.new_terminal = function () {
|
||||
|
@ -49,6 +49,11 @@ data-terminals-available="{{terminals_available}}"
|
||||
<li role="presentation" id="new-folder">
|
||||
<a role="menuitem" tabindex="-1" href="#">Folder</a>
|
||||
</li>
|
||||
{% if terminals_available %}
|
||||
<li role="presentation" id="new-terminal">
|
||||
<a role="menuitem" tabindex="-1" href="#">Terminal</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li role="presentation" class="divider"></li>
|
||||
<li role="presentation" class="dropdown-header" id="notebook-kernels">Notebooks</li>
|
||||
</ul>
|
||||
@ -79,11 +84,6 @@ data-terminals-available="{{terminals_available}}"
|
||||
</div>
|
||||
<div class="col-sm-4 no-padding tree-buttons">
|
||||
<span id="running_buttons" class="pull-right">
|
||||
{% if terminals_available %}
|
||||
<button id="new_terminal" title="New terminal" class="btn btn-default btn-xs">
|
||||
New Terminal
|
||||
</button>
|
||||
{% endif %}
|
||||
<button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user