diff --git a/core/modules/filter/filter.admin.js b/core/modules/filter/filter.admin.js index e14634ce342b3184afad0bf903f871fc92084519..3af562455e893d2d8e9874671ed278e4e3be49eb 100644 --- a/core/modules/filter/filter.admin.js +++ b/core/modules/filter/filter.admin.js @@ -8,8 +8,12 @@ "use strict"; /** + * Displays and updates the status of filters on the admin page. * * @type {Drupal~behavior} + * + * @prop {Drupal~behaviorAttach} attach + * Attaches behaviors to the filter admin view. */ Drupal.behaviors.filterStatus = { attach: function (context, settings) { @@ -22,8 +26,8 @@ var $filterSettings = $context.find('#' + $checkbox.attr('id').replace(/-status$/, '-settings')); var filterSettingsTab = $filterSettings.data('verticalTab'); - // Bind click handler to this checkbox to conditionally show and hide the - // filter's tableDrag row and vertical tab pane. + // Bind click handler to this checkbox to conditionally show and hide + // the filter's tableDrag row and vertical tab pane. $checkbox.on('click.filterUpdate', function () { if ($checkbox.is(':checked')) { $row.show(); diff --git a/core/modules/filter/filter.filter_html.admin.js b/core/modules/filter/filter.filter_html.admin.js index 1a20cfa8a0e2f9ec956fbf8753fbc31f55938c44..75a9824b4ea0f4692d8ea8547f9b42937ed3afd0 100644 --- a/core/modules/filter/filter.filter_html.admin.js +++ b/core/modules/filter/filter.filter_html.admin.js @@ -19,6 +19,7 @@ /** * @return {Array} + * An array of filter rules. */ getRules: function () { var currentValue = $('#edit-filters-filter-html-settings-allowed-html').val(); @@ -45,10 +46,14 @@ } /** + * Displays and updates what HTML tags are allowed to use in a filter. * * @type {Drupal~behavior} * * @todo Remove everything but 'attach' and 'detach' and make a proper object. + * + * @prop {Drupal~behaviorAttach} attach + * Attaches behavior for updating allowed HTML tags. */ Drupal.behaviors.filterFilterHtmlUpdating = { diff --git a/core/modules/filter/filter.js b/core/modules/filter/filter.js index 58b595fe77e6ed372625c844cf56491bc1bf9c56..cdb0795aa26e45d667975017f14846b1580eb71d 100644 --- a/core/modules/filter/filter.js +++ b/core/modules/filter/filter.js @@ -11,6 +11,9 @@ * Displays the guidelines of the selected text format automatically. * * @type {Drupal~behavior} + * + * @prop {Drupal~behaviorAttach} attach + * Attaches behavior for updating filter guidelines. */ Drupal.behaviors.filterGuidelines = { attach: function (context) {