PageSourceSearch

https://www.jhrl.com/sites/all/modules/contrib/ctools/js/jump-menu.js?tlse4v

js jhrl.com collected 2026-10-06 13:18:27 UTC 1,099 bytes, 42 lines download raw bytes

1
2(function($) {
3  Drupal.behaviors.CToolsJumpMenu = {
4    attach: function(context) {
5      $('.ctools-jump-menu-hide')
6        .once('ctools-jump-menu')
7        .hide();
8
9      $('.ctools-jump-menu-change')
10        .once('ctools-jump-menu')
11        .change(function() {
12          var loc = $(this).val();
13          var urlArray = loc.split('::');
14          if (urlArray[1]) {
15            location.href = urlArray[1];
16          }
17          else {
18            location.href = loc;
19          }
20          return false;
21        });
22
23      $('.ctools-jump-menu-button')
24        .once('ctools-jump-menu')
25        .click(function() {
26          // Instead of submitting the form, just perform the redirect.
27
28          // Find our sibling value.
29          var $select = $(this).parents('form').find('.ctools-jump-menu-select');
30          var loc = $select.val();
31          var urlArray = loc.split('::');
32          if (urlArray[1]) {
33            location.href = urlArray[1];
34          }
35          else {
36            location.href = loc;
37          }
38          return false;
39        });
40    }
41  };
42})(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.