mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-05-03 01:06:54 +00:00
mediawiki toc: adapt to version 1.35
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bc49aa1606
commit
acf6050bdd
@ -91,8 +91,11 @@ var asciidoc = {
|
|||||||
|
|
||||||
// add init to mediawiki resource loader queue
|
// add init to mediawiki resource loader queue
|
||||||
(window.RLQ=window.RLQ||[]).push(function(){
|
(window.RLQ=window.RLQ||[]).push(function(){
|
||||||
|
// cannot use mw.hook directly here yet, the mediawiki.base module is not yet available
|
||||||
|
mw.loader.implement('pve.doctoc', function() {
|
||||||
mw.hook('wikipage.content').add(function($content) {
|
mw.hook('wikipage.content').add(function($content) {
|
||||||
asciidoc.toc($content);
|
asciidoc.toc($content);
|
||||||
asciidoc.footnotes($content);
|
asciidoc.footnotes($content);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user