Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1190,6 +1190,7 @@ |
1191 | 1191 | } |
1192 | 1192 | } |
1193 | 1193 | |
| 1194 | + $classes = array(); // Textarea CSS |
1194 | 1195 | if( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) { |
1195 | 1196 | # Show a warning if editing an interface message |
1196 | 1197 | $wgOut->addWikiMsg( 'editinginterface' ); |
— | — | @@ -1197,9 +1198,11 @@ |
1198 | 1199 | # Is the title semi-protected? |
1199 | 1200 | if( $this->mTitle->isSemiProtected() ) { |
1200 | 1201 | $noticeMsg = 'semiprotectedpagewarning'; |
| 1202 | + $classes[] = 'mw-textarea-sprotected'; |
1201 | 1203 | } else { |
1202 | 1204 | # Then it must be protected based on static groups (regular) |
1203 | 1205 | $noticeMsg = 'protectedpagewarning'; |
| 1206 | + $classes[] = 'mw-textarea-protected'; |
1204 | 1207 | } |
1205 | 1208 | $wgOut->addHTML( "<div id='mw-edit-$noticeMsg'>\n" ); |
1206 | 1209 | $wgOut->addWikiMsg( $noticeMsg ); |
— | — | @@ -1396,7 +1399,7 @@ |
1397 | 1400 | {$this->editFormTextBeforeContent} |
1398 | 1401 | END |
1399 | 1402 | ); |
1400 | | - $this->showTextbox1(); |
| 1403 | + $this->showTextbox1( $classes ); |
1401 | 1404 | |
1402 | 1405 | $wgOut->wrapWikiMsg( "<div id=\"editpage-copywarn\">\n$1\n</div>", $copywarnMsg ); |
1403 | 1406 | $wgOut->addHTML( <<<END |
— | — | @@ -1472,11 +1475,13 @@ |
1473 | 1476 | <input type='hidden' value=\"{$this->scrolltop}\" name=\"wpScrolltop\" id=\"wpScrolltop\" />\n" ); |
1474 | 1477 | } |
1475 | 1478 | |
1476 | | - protected function showTextbox1() { |
| 1479 | + protected function showTextbox1( $classes ) { |
1477 | 1480 | $attribs = array( 'tabindex' => 1 ); |
1478 | 1481 | |
1479 | 1482 | if( $this->wasDeletedSinceLastEdit() ) |
1480 | 1483 | $attribs['type'] = 'hidden'; |
| 1484 | + if( !empty($classes) ) |
| 1485 | + $attribs['class'] = implode(' ',$classes); |
1481 | 1486 | |
1482 | 1487 | $this->showTextbox( $this->textbox1, 'wpTextbox1', $attribs ); |
1483 | 1488 | } |