use explicit running header name + jquery's toggle

This commit is contained in:
Paul Ivanov 2014-02-27 17:59:16 -08:00
parent 7d1da4c550
commit 14239c01e4

View File

@ -31,11 +31,7 @@ var IPython = (function (IPython) {
this.add_shutdown_button(item,this.sessions[path]);
}
if ($.isEmptyObject(d)) {
$('#' + this.element_name + '_list_header').show();
} else {
$('#' + this.element_name + '_list_header').hide();
}
$('#running_list_header').toggle($.isEmptyObject(d));
}
IPython.KernelList = KernelList;