1(function ($) { 2 'use strict'; 3 Drupal.behaviors.ACChangeEnterBehavior = { 4 attach: function (context, settings) { 5 $('input.form-autocomplete', context).once('ac-change-enter-behavior', function() { 6 $(this).keypress(function(e) { 7 var ac = $('#autocomplete'); 8 if (e.keyCode == 13 && typeof ac[0] != 'undefined') { 9 e.preventDefault(); 10 ac.each(function () { 11 if(this.owner.selected == false){ 12 this.owner.selectDown(); 13 } 14 this.owner.hidePopup(); 15 }); 16 $(this).trigger('change'); 17 } 18 }); 19 }); 20 } 21 }; 22}(jQuery)); 23; 24/** 25 * @file 26 * equalheights module javascript settings. 27 */ 28(function($) { 29 Drupal.behaviors.equalHeightsModule = { 30 attach: function (context, settings) { 31 if (Drupal.settings.equalHeightsModule) { 32 var eqClass = Drupal.settings.equalHeightsModule.classes; 33 } 34 if (eqClass) { 35 equalHeightsTrigger(); 36 $(window).bind('resize', function () { 37 equalHeightsTrigger(); 38 }); 39 } 40 function equalHeightsTrigger() { 41 $.each(eqClass, function(eqClass, setting) { 42 var target = $(setting.selector); 43 var minHeight = setting.minheight; 44 var maxHeight = setting.maxheight; 45 var overflow = setting.overflow; 46 target.css('height', ''); 47 target.css('overflow', ''); 48 49 // Disable equalheights not matching the mediaquery 50 var mediaQuery = setting.mediaquery; 51 var matchMedia = window.matchMedia; 52 if (mediaQuery) { 53 if (matchMedia && !matchMedia(mediaQuery).matches) { 54 return; 55 } else { 56 equalHeightsLoad(target, minHeight, maxHeight, overflow); 57 } 58 } else { 59 equalHeightsLoad(target,minHeight, maxHeight, overflow); 60 } 61 }); 62 } 63 function equalHeightsLoad(target, minHeight, maxHeight, overflow) { 64 // disable imagesloaded for IE<=8 65 var imagesLoadedIE8 = Drupal.settings.equalHeightsModule.imagesloaded_ie8; 66 if (imagesLoadedIE8 && window.attachEvent && !window.addEventListener) { 67 target.equalHeights(minHeight, maxHeight).css('overflow', overflow); 68 } else { 69 // imagesloaded library checks if all images are loaded before callback 70 target.imagesLoaded({ 71 callback: function($images, $proper, $broken) { 72 this.equalHeights(minHeight, maxHeight).css('overflow', overflow) 73 } 74 }); 75 } 76 } 77 78 } 79 } 80})(jQuery); 81; 82(function ($) { 83 Drupal.behaviors.reiki_reporting = { 84 attach: function (context) { 85 86 } 87}})(jQuery); 88;
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.