Skip to content

Commit 1e844bf

Browse files
committed
[toc2] show button pressed when ToC is visible
1 parent 45e4c83 commit 1e844bf

File tree

1 file changed

+2
-0
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/toc2

1 file changed

+2
-0
lines changed

src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@
335335
}
336336
toc_wrapper.toggle(cfg.toc_window_display);
337337
makeUnmakeSidebar(cfg);
338+
$("#toc_button").toggleClass('active', cfg.toc_window_display);
338339
if (!cfg.toc_section_display) {
339340
makeUnmakeMinimized(cfg);
340341
}
@@ -585,6 +586,7 @@
585586
cfg['toc_window_display'] = setMd('toc_window_display', show);
586587
setNotebookWidth(cfg);
587588
table_of_contents(cfg);
589+
$("#toc_button").toggleClass('active', show);
588590
};
589591

590592
var show_settings_dialog = function (cfg, st) {

0 commit comments

Comments
 (0)