From: Krinkle Date: Mon, 14 Mar 2011 18:11:19 +0000 (+0000) Subject: Follow-up r82310 CR: Adding comment about document ready (since it uses jQuery and... X-Git-Tag: 1.31.0-rc.0~31413 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=78e2ec1ed470e1ef97be9c85378a4efd29a9fa93;p=lhc%2Fweb%2Fwiklou.git Follow-up r82310 CR: Adding comment about document ready (since it uses jQuery and interacts with DOM elements) --- diff --git a/resources/mediawiki.util/mediawiki.util.js b/resources/mediawiki.util/mediawiki.util.js index 17d3eb2ae6..16e2aed196 100644 --- a/resources/mediawiki.util/mediawiki.util.js +++ b/resources/mediawiki.util/mediawiki.util.js @@ -274,9 +274,10 @@ /** * Checks wether the current page is the wiki's main page. + * This function requires the document to be ready! * * @param alsoRelated Boolean value, if true this function also returns true if the current page is - * in a different namespace page of the main page rather than the main page itself (eg. talk page) + * in an associated namespace page of the main page rather than the main page itself (eg. talk page) * @return Boolean */ 'isMainPage' : function( alsoRelated ) {