diff --git a/includes/htmlform/fields/HTMLMultiSelectField.php b/includes/htmlform/fields/HTMLMultiSelectField.php index c9fcb0992f5..fee5d6344a2 100644 --- a/includes/htmlform/fields/HTMLMultiSelectField.php +++ b/includes/htmlform/fields/HTMLMultiSelectField.php @@ -120,6 +120,8 @@ class HTMLMultiSelectField extends HTMLFormField implements HTMLNestedFilterable * @return OOUI\CheckboxMultiselectInputWidget */ public function getInputOOUI( $value ) { + $this->mParent->getOutput()->addModules( 'oojs-ui-widgets' ); + $attr = $this->getTooltipAndAccessKey(); $attr['id'] = $this->mID; $attr['name'] = "{$this->mName}[]"; diff --git a/resources/src/mediawiki/htmlform/multiselect.js b/resources/src/mediawiki/htmlform/multiselect.js index a8786efa5b0..9ab253262c6 100644 --- a/resources/src/mediawiki/htmlform/multiselect.js +++ b/resources/src/mediawiki/htmlform/multiselect.js @@ -32,9 +32,9 @@ function convertCheckboxesToMulti( $oldContainer, type ) { var $fieldLabel = $( '' ), - $td = $( '' ), - $fieldLabelText = $( '