summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2015-08-29 06:26:50 (GMT)
committerwebchick2015-08-29 06:26:50 (GMT)
commit524b3c0f02efa939b919259d219193403469daba (patch)
tree6b45ab92962f460e8e37f38551a38bc7e404418b
parente75737125cac0c0c4662518538a2796547149f8c (diff)
Issue #2529292 by nod_, eiriksm: JSDoc locale module
-rw-r--r--core/modules/locale/locale.admin.js12
-rw-r--r--core/modules/locale/locale.bulk.js3
2 files changed, 15 insertions, 0 deletions
diff --git a/core/modules/locale/locale.admin.js b/core/modules/locale/locale.admin.js
index c7bac21..6bfe594 100644
--- a/core/modules/locale/locale.admin.js
+++ b/core/modules/locale/locale.admin.js
@@ -11,6 +11,11 @@
* Marks changes of translations.
*
* @type {Drupal~behavior}
+ *
+ * @prop {Drupal~behaviorAttach} attach
+ * Attaches behavior to show the user if translations has changed.
+ * @prop {Drupal~behaviorDetach} detach
+ * Detach behavior to show the user if translations has changed.
*/
Drupal.behaviors.localeTranslateDirty = {
attach: function () {
@@ -50,6 +55,9 @@
* Show/hide the description details on Available translation updates page.
*
* @type {Drupal~behavior}
+ *
+ * @prop {Drupal~behaviorAttach} attach
+ * Attaches behavior for toggling details on the translation update page.
*/
Drupal.behaviors.hideUpdateInformation = {
attach: function (context, settings) {
@@ -85,16 +93,20 @@
$.extend(Drupal.theme, /** @lends Drupal.theme */{
/**
+ * Creates markup for a changed translation marker.
*
* @return {string}
+ * Markup for the marker.
*/
localeTranslateChangedMarker: function () {
return '<abbr class="warning ajax-changed" title="' + Drupal.t('Changed') + '">*</abbr>';
},
/**
+ * Creates markup for the translation changed warning.
*
* @return {string}
+ * Markup for the warning.
*/
localeTranslateChangedWarning: function () {
return '<div class="clearfix messages messages--warning">' + Drupal.theme('localeTranslateChangedMarker') + ' ' + Drupal.t('Changes made in this table will not be saved until the form is submitted.') + '</div>';
diff --git a/core/modules/locale/locale.bulk.js b/core/modules/locale/locale.bulk.js
index 7ddafd0..c6c4daf 100644
--- a/core/modules/locale/locale.bulk.js
+++ b/core/modules/locale/locale.bulk.js
@@ -13,6 +13,9 @@
* This only works if the file name ends with "LANGCODE.po".
*
* @type {Drupal~behavior}
+ *
+ * @prop {Drupal~behaviorAttach} attach
+ * Attaches behavior for preselecting language code based on filename.
*/
Drupal.behaviors.importLanguageCodeSelector = {
attach: function (context, settings) {