]> git.proxmox.com Git - pve-docs.git/commitdiff
asciidoc.js: use mediawiki resource loader queue
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 22 Oct 2016 12:50:00 +0000 (14:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 22 Oct 2016 12:50:00 +0000 (14:50 +0200)
Because jQuery is not available when we load the script.

asciidoc/asciidoc.js

index b29ab48591e7a34b9e3a0c10bf67a671f99c756f..fa71f7576d416cbe4cbec49046fa35806237997f 100644 (file)
@@ -92,8 +92,8 @@ var asciidoc = {
     }
 };
 
-jQuery(document).ready(function(){
+// add init to mediawiki resource loader queue
+(window.RLQ=window.RLQ||[]).push(function(){
     asciidoc.footnotes();
     asciidoc.toc();
 });
-