r83936 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83935‎ | r83936 | r83937 >
Date:18:11, 14 March 2011
Author:krinkle
Status:ok
Tags:
Comment:
Follow-up r82310 CR: Adding comment about document ready (since it uses jQuery and interacts with DOM elements)
Modified paths:
  • /trunk/phase3/resources/mediawiki.util/mediawiki.util.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js
@@ -274,9 +274,10 @@
275275
276276 /**
277277 * Checks wether the current page is the wiki's main page.
 278+ * This function requires the document to be ready!
278279 *
279280 * @param alsoRelated Boolean value, if true this function also returns true if the current page is
280 - * in a different namespace page of the main page rather than the main page itself (eg. talk page)
 281+ * in an associated namespace page of the main page rather than the main page itself (eg. talk page)
281282 * @return Boolean
282283 */
283284 'isMainPage' : function( alsoRelated ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82310Adding function to check if the current page is the main space or (optionally...krinkle23:23, 16 February 2011

Status & tagging log