From: Kunal Mehta Date: Sat, 27 Jun 2015 07:55:24 +0000 (-0700) Subject: OOUIHTMLForm: Make the submit button infusable X-Git-Tag: 1.31.0-rc.0~10950^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=f78470de9365f0558469681d59267e30ffd6969f;p=lhc%2Fweb%2Fwiklou.git OOUIHTMLForm: Make the submit button infusable So people can do things to it like adding click handlers. Change-Id: Ia51d3aca055709d5205eea1922a2985d1623ed8d --- diff --git a/includes/htmlform/OOUIHTMLForm.php b/includes/htmlform/OOUIHTMLForm.php index 6c9952a07f..056591aad1 100644 --- a/includes/htmlform/OOUIHTMLForm.php +++ b/includes/htmlform/OOUIHTMLForm.php @@ -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;