MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Open Source Ecology (OSE) Germany - Entwicklungsplattform
Zeile 5: | Zeile 5: | ||
}); | }); | ||
− | if (initJSFuncts!==undefined) { | + | if (window.initJSFuncts!==undefined) { |
− | for(ijsf=0; ijsf<initJSFuncts.length; ijsf++) { | + | for(ijsf=0; ijsf<window.initJSFuncts.length; ijsf++) { |
− | try {initJSFuncts[ijsf]();}catch(e){console.log(e);} | + | try {window.initJSFuncts[ijsf]();}catch(e){console.log(e);} |
} | } | ||
} | } |
Version vom 22. Februar 2020, 05:15 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */ $(".materialRow .showComment").click(function(){ $(this).parent().toggleClass("openComments"); $(this).parent().parent().next().toggle(500); }); if (window.initJSFuncts!==undefined) { for(ijsf=0; ijsf<window.initJSFuncts.length; ijsf++) { try {window.initJSFuncts[ijsf]();}catch(e){console.log(e);} } }