Expand a few comments. One as per Nikerabbit's comment on r59695.
authorDaniel Friesen <dantman@users.mediawiki.org>
Thu, 3 Dec 2009 10:29:34 +0000 (10:29 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Thu, 3 Dec 2009 10:29:34 +0000 (10:29 +0000)
includes/EditPage.php

index b4515dd..6d215e0 100644 (file)
@@ -1536,7 +1536,7 @@ END
                        'tabindex' => '1',
                        'size' => 60,
                        'spellcheck' => 'true',
-                       'onfocus' => "currentFocused = this;",
+                       'onfocus' => "currentFocused = this;", // Make wpSummary insertable for editbuttons
                );
                if ( $userInputAttrs )
                        $inputAttrs += $userInputAttrs;
@@ -1710,8 +1710,8 @@ INPUTS
                        'id'   => $name,
                        'cols' => $wgUser->getIntOption( 'cols' ), 
                        'rows' => $wgUser->getIntOption( 'rows' ),
-                       'onfocus' => "currentFocused = this;",
-                       'style' => '' // for php notices
+                       'onfocus' => "currentFocused = this;", // Make textareas insertable for editbuttons
+                       'style' => '' // avoid php notices when appending for editwidth preference (appending allows customAttribs['style'] to still work
                );
 
                if ( $wgUser->getOption( 'editwidth' ) )