Commit 0d737bf7 authored by webchick's avatar webchick

Issue #2531604 by eiriksm: JSDoc system module

parent 62285a81
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
* Display the preview for date format entered. * Display the preview for date format entered.
* *
* @type {Drupal~behavior} * @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attach behavior for previewing date formats on input elements.
*/ */
Drupal.behaviors.dateFormat = { Drupal.behaviors.dateFormat = {
attach: function (context) { attach: function (context) {
...@@ -30,6 +33,7 @@ ...@@ -30,6 +33,7 @@
* Event handler that replaces date characters with value. * Event handler that replaces date characters with value.
* *
* @param {jQuery.Event} e * @param {jQuery.Event} e
* The jQuery event triggered.
*/ */
function dateFormatHandler(e) { function dateFormatHandler(e) {
var baseValue = $(e.target).val() || ''; var baseValue = $(e.target).val() || '';
......
...@@ -11,11 +11,16 @@ ...@@ -11,11 +11,16 @@
var ids = []; var ids = [];
/** /**
* When a field is filled out, apply its value to other fields that will likely * Attaches field copy behavior from input fields to other input fields.
* use the same value. In the installer this is used to populate the *
* 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. * administrator email address with the same value as the site email address.
* *
* @type {Drupal~behavior} * @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the field copy behavior to an input field.
*/ */
Drupal.behaviors.copyFieldValue = { Drupal.behaviors.copyFieldValue = {
attach: function (context) { attach: function (context) {
...@@ -60,9 +65,11 @@ ...@@ -60,9 +65,11 @@
/** /**
* Handler for a Blur event on a source field. * 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 * @param {jQuery.Event} e
* The event triggered.
*/ */
valueSourceBlurHandler: function (e) { valueSourceBlurHandler: function (e) {
var value = $(e.target).val(); var value = $(e.target).val();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment