1(function ($) { 2 Drupal.behaviors.newsletter = { 3 attach: function (context, settings) { 4 $("input[name='email']", context).click(function () { 5 if ($(this).val() == Drupal.t('[email protected]')) { 6 $(this).val(''); 7 } 8 }); 9 $("input[name='email']", context).blur(function () { 10 if ($(this).val() == '') { 11 $(this).val(Drupal.t('[email protected]')); 12 } 13 }); 14 }, 15 16 subscribeForm: function(data) { 17 $.each(Drupal.settings.exposed, function(e,i) { 18 if (!$('#edit-field-newsletter-list-' + Drupal.settings.lang + '-' + i).attr('checked')) { 19 $('.form-item-exposed-' + i).hide(); 20 } 21 22 $('#edit-field-newsletter-list-' + Drupal.settings.lang + '-' + i).click(function () { 23 $('.form-item-exposed-' + i).toggle(); 24 }); 25 }); 26 } 27 }; 28})(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.