Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -221,9 +221,11 @@ |
222 | 222 | * View or edit an individual banner |
223 | 223 | */ |
224 | 224 | private function showView() { |
225 | | - global $wgOut, $wgUser, $wgRequest, $wgContLanguageCode; |
226 | | - |
| 225 | + global $wgOut, $wgUser, $wgRequest, $wgContLanguageCode, $wgScriptPath; |
| 226 | + |
| 227 | + $scriptPath = "$wgScriptPath/extensions/CentralNotice"; |
227 | 228 | $sk = $wgUser->getSkin(); |
| 229 | + |
228 | 230 | if ( $this->editable ) { |
229 | 231 | $readonly = array(); |
230 | 232 | } else { |
— | — | @@ -394,16 +396,11 @@ |
395 | 397 | } |
396 | 398 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-edit-template' ) ); |
397 | 399 | $htmlOut .= wfMsg( 'centralnotice-edit-template-summary' ); |
398 | | - $htmlOut .= Xml::openElement( 'table', |
399 | | - array( |
400 | | - 'cellpadding' => 9, |
401 | | - 'width' => '100%' |
402 | | - ) |
| 400 | + $htmlOut .= Xml::tags( 'div', |
| 401 | + array( 'style' => 'margin-bottom: 0.2em;' ), |
| 402 | + '<img src="'.$scriptPath.'/down-arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-insert' ) . ': <a href="#" onclick="insertButton(\'hide\');return false;">' . wfMsg( 'centralnotice-hide-button' ) . '</a>, <a href="#" onclick="insertButton(\'translate\');return false;">' . wfMsg( 'centralnotice-translate-button' ) . '</a>' |
403 | 403 | ); |
404 | | - $htmlOut .= Xml::tags( 'tr', null, |
405 | | - Xml::tags( 'td', null, Xml::textarea( 'templateBody', $body, 60, 20, $readonly ) ) |
406 | | - ); |
407 | | - $htmlOut .= Xml::closeElement( 'table' ); |
| 404 | + $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20, $readonly ); |
408 | 405 | if ( $this->editable ) { |
409 | 406 | $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
410 | 407 | $htmlOut .= Xml::tags( 'div', |
Index: trunk/extensions/CentralNotice/centralnotice.js |
— | — | @@ -40,4 +40,5 @@ |
41 | 41 | } else { |
42 | 42 | bannerField.value += buttonValue; |
43 | 43 | } |
| 44 | + bannerField.focus(); |
44 | 45 | } |
\ No newline at end of file |