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
Merge "Use array_merge() for OutputPage::$mLanguageLinks, not +"
[lhc/web/wiklou.git]
/
includes
/
widget
/
SelectWithInputWidget.php
diff --git
a/includes/widget/SelectWithInputWidget.php
b/includes/widget/SelectWithInputWidget.php
index
5ceed4c
..
262903d
100644
(file)
--- a/
includes/widget/SelectWithInputWidget.php
+++ b/
includes/widget/SelectWithInputWidget.php
@@
-36,6
+36,11
@@
class SelectWithInputWidget extends \OOUI\Widget {
$config
);
+ if ( isset( $config['disabled'] ) && $config['disabled'] == true ) {
+ $config['textinput']['disabled'] = true;
+ $config['dropdowninput']['disabled'] = true;
+ }
+
parent::__construct( $config );
// Properties