/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
doc/_templates/modules-sidebar.html
31 строка
681 B
Elias Probst
Fix again what was supposed to be fixed in PR#14101.
08 окт 2014, 19:23
08 окт 2014, 19:23
6a29368
Код
Авторство
О чём код?
<div id="module-funcs"></div> <script> jQuery.fn.local_toc = function(tgt_sel) { var tgt = jQuery(tgt_sel); tgt.append('<h4>Table of Contents</h4>'); tgt.append('<ul></ul>'); jQuery('dt .headerlink').each(function(idx, elem) { var i = [ '<li><a href="', elem.href, '">', last(elem.href.split('.')), '</a></li>'] .join(''); jQuery(tgt_sel + '> ul').append(i); }); function last(list) { return list[list.length - 1]; } }; </script> <script> ;(function($) { $.fn.local_toc('#module-funcs'); })(jQuery); </script>