diff --git a/core/modules/system/js/system.date.js b/core/modules/system/js/system.date.js index f679f269302d49bfcb2cb5bfc652978f3e08eabf..75a7869b3b7ae401de07f377df89abe4f5745fac 100644 --- a/core/modules/system/js/system.date.js +++ b/core/modules/system/js/system.date.js @@ -13,6 +13,9 @@ * Display the preview for date format entered. * * @type {Drupal~behavior} + * + * @prop {Drupal~behaviorAttach} attach + * Attach behavior for previewing date formats on input elements. */ Drupal.behaviors.dateFormat = { attach: function (context) { @@ -30,6 +33,7 @@ * Event handler that replaces date characters with value. * * @param {jQuery.Event} e + * The jQuery event triggered. */ function dateFormatHandler(e) { var baseValue = $(e.target).val() || ''; diff --git a/core/modules/system/js/system.js b/core/modules/system/js/system.js index e052c3f207d3a45fbd5dbe37636f99b4b1fd8554..cbfe4ea7b68da26a65b0ef6fa523c3b3cf6152a6 100644 --- a/core/modules/system/js/system.js +++ b/core/modules/system/js/system.js @@ -11,11 +11,16 @@ var ids = []; /** - * When a field is filled out, apply its value to other fields that will likely - * use the same value. In the installer this is used to populate the + * Attaches field copy behavior from input fields to other input fields. + * + * When a field is filled out, apply its value to other fields that will + * likely use the same value. In the installer this is used to populate the * administrator email address with the same value as the site email address. * * @type {Drupal~behavior} + * + * @prop {Drupal~behaviorAttach} attach + * Attaches the field copy behavior to an input field. */ Drupal.behaviors.copyFieldValue = { attach: function (context) { @@ -60,9 +65,11 @@ /** * Handler for a Blur event on a source field. * - * This event handler will trigger a 'value:copy' event on all dependent fields. + * This event handler will trigger a 'value:copy' event on all dependent + * fields. * * @param {jQuery.Event} e + * The event triggered. */ valueSourceBlurHandler: function (e) { var value = $(e.target).val();