X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.rcfilters%2Fui%2Fmw.rcfilters.ui.FilterItemWidget.js;h=7e6d7769254cd7125c1a452c3c49e9334ef1adae;hb=09c69c329ff5dc54d6524a9a52bae6ca7b316969;hp=9bf26d1a5ec03e870891ae6f7c28661277b91108;hpb=c3744a119084b19ee00d53eb304fc5f6961be10e;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterItemWidget.js b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterItemWidget.js index 9bf26d1a5e..7e6d776925 100644 --- a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterItemWidget.js +++ b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterItemWidget.js @@ -21,6 +21,7 @@ this.controller = controller; this.model = model; + this.selected = false; this.checkboxWidget = new mw.rcfilters.ui.CheckboxInputWidget( { value: this.model.getName(), @@ -40,6 +41,16 @@ ); } + this.highlightButton = new mw.rcfilters.ui.FilterItemHighlightButton( + this.controller, + this.model, + { + $overlay: config.$overlay || this.$element, + title: mw.msg( 'rcfilters-highlightmenu-help' ) + } + ); + this.highlightButton.toggle( this.model.isHighlightEnabled() ); + layout = new OO.ui.FieldLayout( this.checkboxWidget, { label: $label, align: 'inline' @@ -53,7 +64,20 @@ this.$element .addClass( 'mw-rcfilters-ui-filterItemWidget' ) .append( - layout.$element + $( '