Chris@0: /** Chris@0: * DO NOT EDIT THIS FILE. Chris@0: * See the following change record for more information, Chris@0: * https://www.drupal.org/node/2815083 Chris@0: * @preserve Chris@0: **/ Chris@0: Chris@0: (function ($, Drupal, drupalSettings) { Chris@0: Drupal.behaviors.commentByViewer = { Chris@0: attach: function attach(context) { Chris@0: var currentUserID = parseInt(drupalSettings.user.uid, 10); Chris@0: $('[data-comment-user-id]').filter(function () { Chris@0: return parseInt(this.getAttribute('data-comment-user-id'), 10) === currentUserID; Chris@0: }).addClass('by-viewer'); Chris@0: } Chris@0: }; Chris@0: })(jQuery, Drupal, drupalSettings);