fix bug of toc

i18n
xaoxuu 6 years ago
parent 6c9fef60a0
commit 4bf6355477
  1. 8
      source/js/app.js

@ -132,10 +132,10 @@ var customSearch;
function setTocToggle() {
const $toc = $('.toc-wrapper');
if ($toc.length === 0) return;
$toc.click((e) => {
e.stopPropagation();
$toc.addClass('active');
});
// $toc.click((e) => {
// e.stopPropagation();
// $toc.addClass('active');
// });
$(document).click(() => $toc.removeClass('active'));
$toc.on('click', 'a', (e) => {

Loading…
Cancel
Save