diff --git a/IPython/html/static/tree/js/notebooklist.js b/IPython/html/static/tree/js/notebooklist.js index 70bf54d..bdf61e9 100644 --- a/IPython/html/static/tree/js/notebooklist.js +++ b/IPython/html/static/tree/js/notebooklist.js @@ -499,12 +499,17 @@ define([ if (selected_nums[i] === 0) { $('#'+checkbox_ids[i])[0].indeterminate = false; $('#'+checkbox_ids[i]).prop('checked', false); - } else if (selected_nums[i] === total_nums[i]) { - $('#'+checkbox_ids[i])[0].indeterminate = false; - $('#'+checkbox_ids[i]).prop('checked', true); + $('#badge-'+checkbox_ids[i]).text(''); } else { - $('#'+checkbox_ids[i]).prop('checked', false); - $('#'+checkbox_ids[i])[0].indeterminate = true; + // Update badge + $('#badge-'+checkbox_ids[i]).text(selected_nums[i]); + if (selected_nums[i] === total_nums[i]) { + $('#'+checkbox_ids[i])[0].indeterminate = false; + $('#'+checkbox_ids[i]).prop('checked', true); + } else { + $('#'+checkbox_ids[i]).prop('checked', false); + $('#'+checkbox_ids[i])[0].indeterminate = true; + } } } }; diff --git a/IPython/html/templates/tree.html b/IPython/html/templates/tree.html index c94eba6..5023bd6 100644 --- a/IPython/html/templates/tree.html +++ b/IPython/html/templates/tree.html @@ -88,6 +88,7 @@ data-terminals-available="{{terminals_available}}"
  • @@ -95,6 +96,7 @@ data-terminals-available="{{terminals_available}}"
  • @@ -102,6 +104,7 @@ data-terminals-available="{{terminals_available}}"
  • @@ -109,6 +112,7 @@ data-terminals-available="{{terminals_available}}"