Merge "Port categories dump header fix"
[lhc/web/wiklou.git] / resources / src / mediawiki / htmlform / multiselect.js
index 9ab2532..d295ca7 100644 (file)
@@ -18,8 +18,8 @@
                } );
                $oldContainer.find( 'input' ).each( function () {
                        var $oldInput = $( this ),
-                       checked = $oldInput.prop( 'checked' ),
-                       $option = $( '<option>' );
+                               checked = $oldInput.prop( 'checked' ),
+                               $option = $( '<option>' );
                        $option.prop( 'value', $oldInput.prop( 'value' ) );
                        if ( checked ) {
                                $option.prop( 'selected', true );
@@ -64,6 +64,7 @@
                        } );
                } );
                capsulesWidget = new OO.ui.CapsuleMultiselectWidget( {
+                       $overlay: true,
                        menu: {
                                items: capsulesOptions
                        }
@@ -98,7 +99,6 @@
                                                modules.push.apply( modules, extraModules );
                                        }
                                        mw.loader.using( modules, function () {
-                                               /*jshint -W024*/
                                                convertCheckboxesWidgetToCapsules( OO.ui.FieldLayout.static.infuse( $el ) );
                                        } );
                                } else {