Show More
@@ -38,7 +38,7 b' define([' | |||
|
38 | 38 | $('#refresh_' + this.element_name + '_list').click(function () { |
|
39 | 39 | that.load_terminals(); |
|
40 | 40 | }); |
|
41 |
$('#new |
|
|
41 | $('#new-terminal').click($.proxy(this.new_terminal, this)); | |
|
42 | 42 | }; |
|
43 | 43 | |
|
44 | 44 | TerminalList.prototype.new_terminal = function () { |
@@ -49,6 +49,11 b' data-terminals-available="{{terminals_available}}"' | |||
|
49 | 49 | <li role="presentation" id="new-folder"> |
|
50 | 50 | <a role="menuitem" tabindex="-1" href="#">Folder</a> |
|
51 | 51 | </li> |
|
52 | {% if terminals_available %} | |
|
53 | <li role="presentation" id="new-terminal"> | |
|
54 | <a role="menuitem" tabindex="-1" href="#">Terminal</a> | |
|
55 | </li> | |
|
56 | {% endif %} | |
|
52 | 57 | <li role="presentation" class="divider"></li> |
|
53 | 58 | <li role="presentation" class="dropdown-header" id="notebook-kernels">Notebooks</li> |
|
54 | 59 | </ul> |
@@ -79,11 +84,6 b' data-terminals-available="{{terminals_available}}"' | |||
|
79 | 84 | </div> |
|
80 | 85 | <div class="col-sm-4 no-padding tree-buttons"> |
|
81 | 86 | <span id="running_buttons" class="pull-right"> |
|
82 | {% if terminals_available %} | |
|
83 | <button id="new_terminal" title="New terminal" class="btn btn-default btn-xs"> | |
|
84 | New Terminal | |
|
85 | </button> | |
|
86 | {% endif %} | |
|
87 | 87 | <button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> |
|
88 | 88 | </span> |
|
89 | 89 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now