PageSourceSearch

https://www.jhrl.com/sites/all/modules/rescms/rc_riot/js/widgets/RCRiotSolrPriceSlider.js?tlse4v

js jhrl.com collected 2026-10-06 13:19:21 UTC 1,448 bytes, 50 lines download raw bytes

1(function($) {
2  AjaxSolr.RCRiotSolrPriceSlider = AjaxSolr.RiotSolrFacetRanges.extend({
3    lookupRegex: new RegExp('{!tag=RCRiotSolrPriceSlider.*}item_id:*'),
4
5    set: function(value) {
6      return this.changeSelection(function() {
7        var a = this.manager.store.removeByValue('fq', new RegExp('^-?' + this.manager.regexEscape(this.field) + ':')),
8          b = this.manager.store.addByValue('fq', this.fq(value));
9        return a || b;
10      });
11    },
12
13    afterRequest: function() {
14      var eventParams = {
15        observable: this.observable,
16        instance: this,
17        field: this.field,
18        widget: 'RCRiotSolrPriceSlider',
19        response: this.manager.response,
20      };
21      this.observable.trigger('RCRiotSolrPriceSliderAfterRequest', eventParams);
22    },
23
24    getTag: function() {
25      return '{!tag=RCRiotSolrPriceSlider,RiotSolrWidget,RCRiotPrices}';
26    },
27
28    getFQ: function() {
29      return this.manager.store.find('fq', this.lookupRegex);
30    },
31
32    formatCurrentSearchLabel: function() {
33      var links = [],
34        inds = this.getFQ(),
35        fq,
36        self = this;
37      if (inds) {
38        fq = this.manager.store.get('fq')[inds[0]];
39        links.push({
40          label: fq.value_label,
41          remove: function() {
42            self.manager.store.removeByValue('fq', self.lookupRegex);
43            self.doRequest();
44          },
45        });
46      }
47      return links;
48    },
49  });
50})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.