From b165014ab329b01e29c6efba794781ed96b82d7a Mon Sep 17 00:00:00 2001
From: webchick <drupal@webchick.net>
Date: Fri, 28 Aug 2015 23:23:27 -0700
Subject: [PATCH] Issue #2503985 by eiriksm, nod_, jhodgdon: JSDoc
 block_content module

---
 core/modules/block_content/js/block_content.js | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/core/modules/block_content/js/block_content.js b/core/modules/block_content/js/block_content.js
index 1c9cea23eff7..c5c79eecc63a 100644
--- a/core/modules/block_content/js/block_content.js
+++ b/core/modules/block_content/js/block_content.js
@@ -8,7 +8,15 @@
   "use strict";
 
   /**
+   * Sets summaries about revision and translation of block content.
+   *
    * @type {Drupal~behavior}
+   *
+   * @prop {Drupal~behaviorAttach} attach
+   *   Attaches summary behaviour block content form tabs.
+   *
+   *   Specifically, it updates summaries to the revision information and the
+   *   translation options.
    */
   Drupal.behaviors.blockContentDetailsSummaries = {
     attach: function (context) {
@@ -17,10 +25,11 @@
         var $revisionContext = $(context);
         var revisionCheckbox = $revisionContext.find('.form-item-revision input');
 
-        // Return 'New revision' if the 'Create new revision' checkbox is checked,
-        // or if the checkbox doesn't exist, but the revision log does. For users
-        // without the "Administer content" permission the checkbox won't appear,
-        // but the revision log will if the content type is set to auto-revision.
+        // Return 'New revision' if the 'Create new revision' checkbox is
+        // checked, or if the checkbox doesn't exist, but the revision log does.
+        // For users without the "Administer content" permission the checkbox
+        // won't appear, but the revision log will if the content type is set
+        // to auto-revision.
         if (revisionCheckbox.is(':checked') || (!revisionCheckbox.length && $revisionContext.find('.form-item-revision-log textarea').length)) {
           return Drupal.t('New revision');
         }
-- 
GitLab