dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make readonly work for OOUI forms
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLTextAreaField.php
diff --git
a/includes/htmlform/HTMLTextAreaField.php
b/includes/htmlform/HTMLTextAreaField.php
index
aeb4b7c
..
5cfea63
100644
(file)
--- a/
includes/htmlform/HTMLTextAreaField.php
+++ b/
includes/htmlform/HTMLTextAreaField.php
@@
-71,6
+71,11
@@
class HTMLTextAreaField extends HTMLFormField {
'readonly' => 'readOnly',
) );
+ if ( isset( $attribs['readOnly'] ) ) {
+ // this needs to be set to a boolean value - hack??
+ $attribs['readOnly'] = true;
+ }
+
return new OOUI\TextInputWidget( array(
'id' => $this->mID,
'name' => $this->mName,