Commit b1d31da9 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2525436 by eiriksm, nod_: JSDoc filter module

parent a9378920
Loading
Loading
Loading
Loading
+6 −2
Changes for core/modules/filter/filter.admin.js: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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();
+5 −0
Changes for core/modules/filter/filter.filter_html.admin.js: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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 = {

+3 −0
Changes for core/modules/filter/filter.js: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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) {