1/** 2 * @file 3 * JavaScript behaviors for options elements. 4 */ 5 6(function ($, Drupal) { 7 /** 8 * Attach handlers to options buttons element. 9 * 10 * @type {Drupal~behavior} 11 */ 12 Drupal.behaviors.webformOptionsButtons = { 13 attach(context) { 14 // Place <input> inside of <label> before the label. 15 $(context).find('label.webform-options-display-buttons-label > input[type="checkbox"], label.webform-options-display-buttons-label > input[type="radio"]').each(function () { 16 var $input = $(this); 17 var $label = $input.parent(); 18 $input.detach().insertBefore($label); 19 }); 20 } 21 }; 22 23})(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.