From f78470de9365f0558469681d59267e30ffd6969f Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 27 Jun 2015 00:55:24 -0700 Subject: [PATCH] OOUIHTMLForm: Make the submit button infusable So people can do things to it like adding click handlers. Change-Id: Ia51d3aca055709d5205eea1922a2985d1623ed8d --- includes/htmlform/OOUIHTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1