New Terminal into new new button

This commit is contained in:
Jonathan Frederic 2014-12-23 12:48:23 -08:00 committed by Jonathan Frederic
parent 7c7da54699
commit 12fe7823ad
2 changed files with 6 additions and 6 deletions

View File

@ -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 () {

View File

@ -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>