From fb29f155ec36c0c3b501dff15c6205569c15a85f Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 6 Oct 2008 16:02:30 +0000 Subject: [PATCH] * Fix sequence of tabindex * Use existing CSS classes for label and input * Break long lines --- includes/Article.php | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 399c77e881..143ca3617b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2282,8 +2282,7 @@ class Article { * @param $reason string Prefilled reason */ function confirmDelete( $reason ) { - global $wgOut, $wgUser, $wgContLang; - $align = $wgContLang->isRtl() ? 'left' : 'right'; + global $wgOut, $wgUser; wfDebug( "Article::confirmDelete\n" ); @@ -2292,9 +2291,13 @@ class Article { $wgOut->addWikiMsg( 'confirmdeletetext' ); if( $wgUser->isAllowed( 'suppressrevision' ) ) { - $suppress = ""; - $suppress .= Xml::checkLabel( wfMsg( 'revdelete-suppress' ), 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '2' ) ); - $suppress .= ""; + $suppress = " + + " . + Xml::checkLabel( wfMsg( 'revdelete-suppress' ), + 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '4' ) ) . + " + "; } else { $suppress = ''; } @@ -2304,37 +2307,39 @@ class Article { 'action' => $this->mTitle->getLocalURL( 'action=delete' ), 'id' => 'deleteconfirm' ) ) . Xml::openElement( 'fieldset', array( 'id' => 'mw-delete-table' ) ) . Xml::tags( 'legend', null, wfMsgExt( 'delete-legend', array( 'parsemag', 'escapenoentities' ) ) ) . - Xml::openElement( 'table' ) . + Xml::openElement( 'table', array( 'id' => 'mw-deleteconfirm-table' ) ) . " - " . + " . Xml::label( wfMsg( 'deletecomment' ), 'wpDeleteReasonList' ) . " - " . + " . Xml::listDropDown( 'wpDeleteReasonList', wfMsgForContent( 'deletereason-dropdown' ), wfMsgForContent( 'deletereasonotherlist' ), '', 'wpReasonDropDown', 1 ) . " - " . + " . Xml::label( wfMsg( 'deleteotherreason' ), 'wpReason' ) . " - " . + " . Xml::input( 'wpReason', 60, $reason, array( 'type' => 'text', 'maxlength' => '255', 'tabindex' => '2', 'id' => 'wpReason' ) ) . " - " . - Xml::checkLabel( wfMsg( 'watchthis' ), 'wpWatch', 'wpWatch', $checkWatch, array( 'tabindex' => '3' ) ) . + " . + Xml::checkLabel( wfMsg( 'watchthis' ), + 'wpWatch', 'wpWatch', $checkWatch, array( 'tabindex' => '3' ) ) . " $suppress - " . - Xml::submitButton( wfMsg( 'deletepage' ), array( 'name' => 'wpConfirmB', 'id' => 'wpConfirmB', 'tabindex' => '4' ) ) . + " . + Xml::submitButton( wfMsg( 'deletepage' ), + array( 'name' => 'wpConfirmB', 'id' => 'wpConfirmB', 'tabindex' => '5' ) ) . " " . Xml::closeElement( 'table' ) . -- 2.20.1