HTMLForm: Don't add a type=reset to links
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 2 Jun 2016 20:50:55 +0000 (22:50 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 2 Jun 2016 20:50:55 +0000 (22:50 +0200)
Follow up: Ieb80e2ff36751abc6f00e2a02926fe9800666a8b

Change-Id: If88c80a46cba9729a9503b82532584443d6d5ba4

includes/htmlform/HTMLForm.php
includes/htmlform/VFormHTMLForm.php

index f073717..8ac4cf2 100644 (file)
@@ -1118,7 +1118,6 @@ class HTMLForm extends ContextSource {
                        $buttons .= Html::element(
                                        'a',
                                        [
-                                               'type' => 'reset',
                                                'class' => $useMediaWikiUIEverywhere ? 'mw-ui-button' : null,
                                                'href' => $target,
                                        ],
index 3adab70..c920ac3 100644 (file)
@@ -124,7 +124,6 @@ class VFormHTMLForm extends HTMLForm {
                        $buttons .= Html::element(
                                        'a',
                                        [
-                                               'type' => 'reset',
                                                'class' => 'mw-ui-button mw-ui-big mw-ui-block',
                                                'href' => $target,
                                        ],