OOUIHTMLForm: Make the submit button infusable
authorKunal Mehta <legoktm@gmail.com>
Sat, 27 Jun 2015 07:55:24 +0000 (00:55 -0700)
committerKunal Mehta <legoktm@gmail.com>
Sat, 27 Jun 2015 07:55:24 +0000 (00:55 -0700)
So people can do things to it like adding click handlers.

Change-Id: Ia51d3aca055709d5205eea1922a2985d1623ed8d

includes/htmlform/OOUIHTMLForm.php

index 6c9952a..056591a 100644 (file)
@@ -54,7 +54,7 @@ class OOUIHTMLForm extends HTMLForm {
                $buttons = '';
 
                if ( $this->mShowSubmit ) {
-                       $attribs = array();
+                       $attribs = array( 'infusable' => true );
 
                        if ( isset( $this->mSubmitID ) ) {
                                $attribs['id'] = $this->mSubmitID;