From: Bartosz Dziewoński Date: Tue, 18 Apr 2017 16:32:34 +0000 (+0200) Subject: EditPage: Restore IE 6 compatibility for OOUI-style buttons X-Git-Tag: 1.31.0-rc.0~3454^2~1 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=0c3a2e24462ab597f6e6e0eef0081d48092fc0fe EditPage: Restore IE 6 compatibility for OOUI-style buttons Follow-up to 97d7de0b84ef65094108fbcf62ffcc1c55d75345. Bug: T163219 Change-Id: Ifb5145c631ce1a3aa7e51956fab3ec7da8b994d2 --- diff --git a/includes/EditPage.php b/includes/EditPage.php index f97f16469a..a9a5efa103 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -4308,6 +4308,8 @@ HTML if ( $this->oouiEnabled ) { $saveConfig = OOUI\Element::configFromHtmlAttributes( $attribs ); $buttons['save'] = new OOUI\ButtonInputWidget( [ + // Support: IE 6 – Use , otherwise it can't distinguish which button was clicked + 'useInputTag' => true, 'flags' => [ 'constructive', 'primary' ], 'label' => $this->context->msg( $buttonLabelKey )->text(), 'infusable' => true, @@ -4329,6 +4331,8 @@ HTML if ( $this->oouiEnabled ) { $previewConfig = OOUI\Element::configFromHtmlAttributes( $attribs ); $buttons['preview'] = new OOUI\ButtonInputWidget( [ + // Support: IE 6 – Use , otherwise it can't distinguish which button was clicked + 'useInputTag' => true, 'label' => $this->context->msg( 'showpreview' )->text(), 'infusable' => true, 'type' => 'submit' @@ -4347,6 +4351,8 @@ HTML if ( $this->oouiEnabled ) { $diffConfig = OOUI\Element::configFromHtmlAttributes( $attribs ); $buttons['diff'] = new OOUI\ButtonInputWidget( [ + // Support: IE 6 – Use , otherwise it can't distinguish which button was clicked + 'useInputTag' => true, 'label' => $this->context->msg( 'showdiff' )->text(), 'infusable' => true, 'type' => 'submit',