##// END OF EJS Templates
Revert PR #5388...
Revert PR #5388 We realised that #5388 introduces a different problem of about the same magnitude as the one it fixes (both are quite minor). A proper fix would be too invasive this close to release, and after discussion, we decided it was better to leave the same problem that has been in previous releases.

File last commit:

r15518:e265dff7
r15886:7bba2551
Show More
kernellist.js
40 lines | 1.3 KiB | application/javascript | JavascriptLexer
Paul Ivanov
minimal KernelList
r15382 //----------------------------------------------------------------------------
// Copyright (C) 2014 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------
//============================================================================
// Running Kernels List
//============================================================================
var IPython = (function (IPython) {
"use strict";
Paul Ivanov
ok, Running tab is working now
r15454 var utils = IPython.utils;
Paul Ivanov
minimal KernelList
r15382 var KernelList = function (selector, options) {
Paul Ivanov
ok, Running tab is working now
r15454 IPython.NotebookList.call(this, selector, options, 'running');
Paul Ivanov
minimal KernelList
r15382 };
Paul Ivanov
ok, Running tab is working now
r15454 KernelList.prototype = Object.create(IPython.NotebookList.prototype);
Paul Ivanov
minimal KernelList
r15382
Paul Ivanov
ok, Running tab is working now
r15454 KernelList.prototype.sessions_loaded = function (d) {
Paul Ivanov
added IPython.session_list...
r15479 this.sessions = d;
Paul Ivanov
ok, Running tab is working now
r15454 this.clear_list();
var item;
Paul Ivanov
added IPython.session_list...
r15479 for (var path in d) {
item = this.new_notebook_item(-1);
Paul Ivanov
don't double-join the notebook path
r15457 this.add_link('', path, item);
Paul Ivanov
small whitespace cleanup, renamed drag_info...
r15518 this.add_shutdown_button(item, this.sessions[path]);
Paul Ivanov
ok, Running tab is working now
r15454 }
Paul Ivanov
use explicit running header name + jquery's toggle
r15512 $('#running_list_header').toggle($.isEmptyObject(d));
Paul Ivanov
ok, Running tab is working now
r15454 }
Paul Ivanov
minimal KernelList
r15382 IPython.KernelList = KernelList;
return IPython;
}(IPython));