| @@ 108-117 (lines=10) @@ | ||
| 105 | $buttons .= Xml::submitButton( $this->getSubmitText(), $attribs ) . "\n"; |
|
| 106 | } |
|
| 107 | ||
| 108 | if ( $this->mShowReset ) { |
|
| 109 | $buttons .= Html::element( |
|
| 110 | 'input', |
|
| 111 | [ |
|
| 112 | 'type' => 'reset', |
|
| 113 | 'value' => $this->msg( 'htmlform-reset' )->text(), |
|
| 114 | 'class' => 'mw-ui-button mw-ui-big mw-ui-block', |
|
| 115 | ] |
|
| 116 | ) . "\n"; |
|
| 117 | } |
|
| 118 | ||
| 119 | foreach ( $this->mButtons as $button ) { |
|
| 120 | $attrs = [ |
|
| @@ 1100-1109 (lines=10) @@ | ||
| 1097 | $buttons .= Xml::submitButton( $this->getSubmitText(), $attribs ) . "\n"; |
|
| 1098 | } |
|
| 1099 | ||
| 1100 | if ( $this->mShowReset ) { |
|
| 1101 | $buttons .= Html::element( |
|
| 1102 | 'input', |
|
| 1103 | [ |
|
| 1104 | 'type' => 'reset', |
|
| 1105 | 'value' => $this->msg( 'htmlform-reset' )->text(), |
|
| 1106 | 'class' => $useMediaWikiUIEverywhere ? 'mw-ui-button' : null, |
|
| 1107 | ] |
|
| 1108 | ) . "\n"; |
|
| 1109 | } |
|
| 1110 | ||
| 1111 | // IE<8 has bugs with <button>, so we'll need to avoid them. |
|
| 1112 | $isBadIE = preg_match( '/MSIE [1-7]\./i', $this->getRequest()->getHeader( 'User-Agent' ) ); |
|