Made HTMLForm wrap the submit buttons in a container for styling
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 11 Sep 2013 21:47:11 +0000 (14:47 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 11 Sep 2013 21:47:19 +0000 (14:47 -0700)
Change-Id: I6510493a80c18ba5a466a16e3ca39396f9a60f60

includes/HTMLForm.php

index ed9440c..5de34d6 100644 (file)
@@ -700,7 +700,7 @@ class HTMLForm extends ContextSource {
         * @return String HTML.
         */
        function getButtons() {
-               $html = '';
+               $html = '<span class="mw-htmlform-submit-buttons">';
 
                if ( $this->mShowSubmit ) {
                        $attribs = array();
@@ -750,6 +750,8 @@ class HTMLForm extends ContextSource {
                        $html .= Html::element( 'input', $attrs );
                }
 
+               $html .= '</span>';
+
                return $html;
        }