X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.htmlform%2Fautoinfuse.js;h=1628c5a9ff733b97fa8d51c80ec1cf395436fd3f;hp=c39e43aaa8a499cba9a7a8591a2438c57a18f476;hb=01cdb1762c7207bd261ad03726a88cb9afc97bfb;hpb=55aab97bb4b507911e24995ae870b78f86c17557 diff --git a/resources/src/mediawiki.htmlform/autoinfuse.js b/resources/src/mediawiki.htmlform/autoinfuse.js index c39e43aaa8..1628c5a9ff 100644 --- a/resources/src/mediawiki.htmlform/autoinfuse.js +++ b/resources/src/mediawiki.htmlform/autoinfuse.js @@ -8,6 +8,11 @@ var $oouiNodes, modules, extraModules; $oouiNodes = $root.find( '.mw-htmlform-field-autoinfuse' ); + + $oouiNodes = $oouiNodes.filter( function () { + return !$( this ).closest( '.mw-htmlform-autoinfuse-lazy' ).length; + } ); + if ( $oouiNodes.length ) { // The modules are preloaded (added server-side in HTMLFormField, and the individual fields // which need extra ones), but this module doesn't depend on them. Wait until they're loaded.