r78942 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78941‎ | r78942 | r78943 >
Date:01:06, 24 December 2010
Author:krinkle
Status:ok
Tags:
Comment:
correcting comments in mw.util
Modified paths:
  • /trunk/phase3/resources/mediawiki.util/mediawiki.util.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js
@@ -121,7 +121,7 @@
122122 * Append a new style block to the head
123123 *
124124 * @param text String CSS to be appended
125 - * @return the CSS stylesheet
 125+ * @return CSSStyleSheet object
126126 */
127127 'addCSS' : function( text ) {
128128 var s = document.createElement( 'style' );
@@ -139,8 +139,8 @@
140140 /**
141141 * Hide/show the table of contents element
142142 *
143 - * @param text String CSS to be appended
144 - * @return the CSS stylesheet
 143+ * @param $toggleLink jQuery object of the toggle link
 144+ * @return String boolean visibility of the toc (true means it's visible)
145145 */
146146 'toggleToc' : function( $toggleLink ) {
147147 var $tocList = $( '#toc ul:first' ),
@@ -152,6 +152,7 @@
153153 expires: 30,
154154 path: '/'
155155 } );
 156+ return true;
156157 } else {
157158 $tocList.slideUp( 'fast' );
158159 $toggleLink.text( mw.msg( 'showtoc' ) );
@@ -159,6 +160,7 @@
160161 expires: 30,
161162 path: '/'
162163 } );
 164+ return false;
163165 }
164166 },
165167

Status & tagging log