]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/static/js/chloro.js
add anchor links on titles
[chloro.git] / chloro / phyll / static / js / chloro.js
index 3fbcd069e2220089653872c01fedb713f91a5ec8..dd95885422dde9cb4b0e17bc33ace2519d15c71b 100644 (file)
@@ -24,7 +24,7 @@ function remove_auto_anchors() {
 }
 
 function auto_anchors() {
-  $('article div.textcell h1, article div.textcell h2, article div.textcell h3, article div.textcell h4').each(function(idx, elem) {
+  $('article h2, article h3, article h4').each(function(idx, elem) {
     var $elem = $(elem);
     if ($elem.attr('id')) return;
     if ($elem.find('.wiki-anchor').length) return;