summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2015-08-29 06:30:19 (GMT)
committerwebchick2015-08-29 06:30:19 (GMT)
commit0d737bf73f6e09efa5adefb60887f4c846b74932 (patch)
tree4a992cab2e82d1896fe478cbaf706468b7e041e1
parent62285a81bdf3473890babf0ee1ca5efd7804edf5 (diff)
Issue #2531604 by eiriksm: JSDoc system module
-rw-r--r--core/modules/system/js/system.date.js4
-rw-r--r--core/modules/system/js/system.js13
2 files changed, 14 insertions, 3 deletions
diff --git a/core/modules/system/js/system.date.js b/core/modules/system/js/system.date.js
index f679f26..75a7869 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 e052c3f..cbfe4ea 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();