From ff9908dd20c0942f282a84e66b770a66f6b4e829 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 3 Feb 2023 16:52:08 +0000 Subject: Mobile preferences: Use a OO.ui.ProcessDialog Remove custom code and styling around setting up the header and footer. Bug: T328791 Change-Id: I1765bf28907c5a77b28223648687e0f81687b8a4 --- includes/specials/forms/PreferencesFormOOUI.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'includes/specials/forms') diff --git a/includes/specials/forms/PreferencesFormOOUI.php b/includes/specials/forms/PreferencesFormOOUI.php index 219d9c4ca89b..b6483f74ff66 100644 --- a/includes/specials/forms/PreferencesFormOOUI.php +++ b/includes/specials/forms/PreferencesFormOOUI.php @@ -287,15 +287,6 @@ class PreferencesFormOOUI extends OOUIHTMLForm { 'id' => 'mw-mobile-prefs-' . $key . '-head' ] ); $contentHeader->addClasses( [ 'mw-prefs-content-head' ] ); - $contentHeaderBackButton = new OOUI\IconWidget( [ - 'icon' => 'close', - 'label' => $this->msg( "prefs-back-label" ), - 'title' => $this->msg( "prefs-back-title" ), - 'classes' => [ 'mw-prefs-header-icon', 'mw-ui-icon' ], - ] ); - $contentHeaderBackButton->setAttributes( [ - 'id' => 'mw-mobile-prefs-' . $key . '-back-button', - ] ); $contentHeaderTitle = ( new OOUI\Tag( 'h5' ) )->setAttributes( [ 'id' => 'mw-mobile-prefs-' . $key . '-title', ] ); @@ -304,7 +295,6 @@ class PreferencesFormOOUI extends OOUIHTMLForm { 'content' => new OOUI\HtmlSnippet( $content ) ] ); $hiddenForm = ( new OOUI\Tag( 'div' ) )->appendContent( $formContent ); - $contentHeader->appendContent( $contentHeaderBackButton ); $contentHeader->appendContent( $contentHeaderTitle ); $contentDiv->appendContent( $contentHeader ); $contentDiv->appendContent( $hiddenForm ); -- cgit v1.2.3