aboutsummaryrefslogtreecommitdiffstats
path: root/includes/specials/forms
diff options
context:
space:
mode:
authorEd Sanders <esanders@wikimedia.org>2023-02-03 16:52:08 +0000
committerEd Sanders <esanders@wikimedia.org>2023-02-03 17:03:32 +0000
commitff9908dd20c0942f282a84e66b770a66f6b4e829 (patch)
tree2793cbd8fbf7e3f448c49e576b6b23afa5bb8935 /includes/specials/forms
parentd81fc7ff1e82ddcb61197f9cdbc6374e52d6eb89 (diff)
downloadmediawikicore-ff9908dd20c0942f282a84e66b770a66f6b4e829.tar.gz
mediawikicore-ff9908dd20c0942f282a84e66b770a66f6b4e829.zip
Mobile preferences: Use a OO.ui.ProcessDialog
Remove custom code and styling around setting up the header and footer. Bug: T328791 Change-Id: I1765bf28907c5a77b28223648687e0f81687b8a4
Diffstat (limited to 'includes/specials/forms')
-rw-r--r--includes/specials/forms/PreferencesFormOOUI.php10
1 files changed, 0 insertions, 10 deletions
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 );