We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f5a6a commit 4151a88Copy full SHA for 4151a88
src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js
@@ -689,15 +689,12 @@
689
690
var toggle_toc = function(cfg, st) {
691
// toggle draw (first because of first-click behavior)
692
- $("#toc-wrapper").toggle({
693
- 'progress': function() {
694
- setNotebookWidth(cfg, st);
695
- },
696
- 'complete': function() {
697
- setMd('toc_window_display', $('#toc-wrapper').css('display') !== 'none');
698
- table_of_contents(cfg, st);
699
- }
700
- });
+ var wrap = $("#toc-wrapper");
+ var show = wrap.is(':hidden');
+ wrap.toggle(show);
+ setMd('toc_window_display', show);
+ setNotebookWidth(cfg);
+ table_of_contents(cfg);
701
};
702
703
var show_settings_dialog = function (cfg, st) {
0 commit comments