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