Loading core/modules/filter/filter.admin.js +6 −2 Changes for core/modules/filter/filter.admin.js: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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(); Loading core/modules/filter/filter.filter_html.admin.js +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 Loading @@ -19,6 +19,7 @@ /** * @return {Array} * An array of filter rules. */ getRules: function () { var currentValue = $('#edit-filters-filter-html-settings-allowed-html').val(); Loading @@ -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 = { Loading core/modules/filter/filter.js +3 −0 Changes for core/modules/filter/filter.js: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
core/modules/filter/filter.admin.js +6 −2 Changes for core/modules/filter/filter.admin.js: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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(); Loading
core/modules/filter/filter.filter_html.admin.js +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 Loading @@ -19,6 +19,7 @@ /** * @return {Array} * An array of filter rules. */ getRules: function () { var currentValue = $('#edit-filters-filter-html-settings-allowed-html').val(); Loading @@ -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 = { Loading
core/modules/filter/filter.js +3 −0 Changes for core/modules/filter/filter.js: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading