1/** 2 * @file 3 * JavaScript behaviors for custom webform #states. 4 */ 5 6(function ($, Drupal) { 7 $(document).on('state:required', function (e) { 8 if (e.trigger && $(e.target).isWebform()) { 9 var $target = $(e.target); 10 11 // @see Issue #2856315: Conditional Logic - Requiring Radios in a Fieldset. 12 // Fix #required for fieldsets. 13 if ($target.is('.js-form-wrapper.panel')) { 14 if (e.value) { 15 $target.find('.panel-heading .panel-title').addClass('js-form-required form-required'); 16 } 17 else { 18 $target.find('.panel-heading .panel-title').removeClass('js-form-required form-required'); 19 } 20 } 21 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.