1"use strict"; 2 3(function ($, Drupal) { 4 Drupal.behaviors.otsukaJynarqueHCCErrors = { 5 attach: function attach(context, settings) { 6 $(document).on('click keypress', '[aria-invalid="true"]', function () { 7 var errorWrapper = $(this).parent('.form-item--error'); 8 errorWrapper.removeClass('form-item--error'); 9 errorWrapper.find('.form-item--error-message').remove(); 10 $(this).removeAttr('aria-invalid'); 11 }); 12 $(document).on('click keypress', '.option', function () { 13 var errorWrapper = $(this).closest('.form-group'); 14 errorWrapper.removeClass('has-error'); 15 errorWrapper.find('.alert-danger').remove(); 16 }); 17 $(document).on('click keypress', '[id*="edit-resident"] .form-item:last-child label', function () { 18 var radiosWrapper = $(this).closest('.fieldset-wrapper'); 19 var radiosFieldGroup = $(this).closest('.fieldgroup'); 20 radiosFieldGroup.addClass('has-error'); 21 radiosWrapper.prepend('<div class="alert alert-danger" role="alert">' + 'This site is intended for US residents only. ' + 'That is because it reflects the way that JYNARQUE is approved for use in the US.' + '</div>'); 22 }); 23 } 24 }; 25})(jQuery, Drupal);
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.