PageSourceSearch

https://derivative.ca/sites/default/files/advagg_js/js__-TcCuty2z9…pF0XZBfK20DpQR-usK1PKLzYFEHTRU3F7doNzOxY.js

js derivative.ca collected 2026-10-01 09:25:26 UTC 720 bytes, 27 lines download raw bytes

1(function ($, Drupal, window) {
2
3  Drupal.behaviors.derivativeSearch = {
4    attach: function (context, settings) {
5
6      $('.global-search form', context).once('derivativeSearch', function () {
7        const $form = $(this);
8        const forum_link = $('.form-item-edit-filter-by-forum a', $form);
9
10        forum_link.click(function (ev) {
11          ev.preventDefault();
12
13          const input = $('input[name=query]#edit-query', $form);
14          const obj = { q: input.val() };
15
16          // It redirects to the forum search on the current tab.
17          window.location = settings.derivativeSearch.forum_url + '?' + $.param(obj);
18        });
19
20      });
21    }
22  };
23
24})(jQuery, Drupal, window);
25
26;/*})'"*/
27;/*})'"*/

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.