X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.rcfilters%2Fdm%2Fmw.rcfilters.dm.FilterGroup.js;h=c6eb635186a2c7487e4638e3f1a2aed22ebb672b;hb=9128deccfe57b428a754253919d9a127d60458dd;hp=d20e2e7f83b4cdf50a421a764ef94e4719bd7c9e;hpb=1380b0dbeaa37aab3d46e44a77fe16034296a93d;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FilterGroup.js b/resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FilterGroup.js index d20e2e7f83..c6eb635186 100644 --- a/resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FilterGroup.js +++ b/resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FilterGroup.js @@ -11,14 +11,12 @@ * @cfg {string} [type='send_unselected_if_any'] Group type * @cfg {string} [view='default'] Name of the display group this group * is a part of. - * @cfg {boolean} [isSticky] This group is using a 'sticky' default; meaning - * that every time a value is changed, it becomes the new default - * @cfg {boolean} [excludedFromSavedQueries] A specific requirement to exclude - * this filter from saved queries. This is always true if the filter is 'sticky' - * but can be used for non-sticky filters as an additional requirement. Similarly - * to 'sticky' it works for the entire group as a whole. + * @cfg {boolean} [sticky] This group is 'sticky'. It is synchronized + * with a preference, does not participate in Saved Queries, and is + * not shown in the active filters area. * @cfg {string} [title] Group title * @cfg {boolean} [hidden] This group is hidden from the regular menu views + * and the active filters area. * @cfg {boolean} [allowArbitrary] Allows for an arbitrary value to be added to the * group from the URL, even if it wasn't initially set up. * @cfg {number} [range] An object defining minimum and maximum values for numeric @@ -47,8 +45,7 @@ this.name = name; this.type = config.type || 'send_unselected_if_any'; this.view = config.view || 'default'; - this.sticky = !!config.isSticky; - this.excludedFromSavedQueries = this.sticky || !!config.excludedFromSavedQueries; + this.sticky = !!config.sticky; this.title = config.title || name; this.hidden = !!config.hidden; this.allowArbitrary = !!config.allowArbitrary; @@ -902,15 +899,6 @@ return this.sticky; }; - /** - * Check whether the group value is excluded from saved queries - * - * @return {boolean} Group value is excluded from saved queries - */ - mw.rcfilters.dm.FilterGroup.prototype.isExcludedFromSavedQueries = function () { - return this.excludedFromSavedQueries; - }; - /** * Normalize a value given to this group. This is mostly for correcting * arbitrary values for 'single option' groups, given by the user settings