also create toc for anonymous visits main
authorFrédéric Péters <fpeters@0d.be>
Sat, 1 Oct 2022 17:51:16 +0000 (19:51 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sat, 1 Oct 2022 17:51:16 +0000 (19:51 +0200)
chloro/phyll/static/js/chloro.js

index 45b0d6c28489013cba4004e86407408b4d9bc60b..ecc6c97d031f59b2f6bcc777aa9352d9415cba83 100644 (file)
@@ -581,6 +581,9 @@ $(function() {
     }
   });
   $('#quickedit input').trigger('change');
+  if ($('#quickedit input').length == 0) {
+    create_toc();
+  }
   $('.search-results').empty();
   $('#search-enable').on('change', function() {
     if ($(this).is(':checked')) {