From 14239c01e44d2a7a5319918b6946cb73052e6fb3 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Thu, 27 Feb 2014 17:59:16 -0800 Subject: [PATCH] use explicit running header name + jquery's toggle --- IPython/html/static/tree/js/kernellist.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/IPython/html/static/tree/js/kernellist.js b/IPython/html/static/tree/js/kernellist.js index d52e09c97..7ff20dd2d 100644 --- a/IPython/html/static/tree/js/kernellist.js +++ b/IPython/html/static/tree/js/kernellist.js @@ -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;