Commit b1d31da9 authored by webchick's avatar webchick

Issue #2525436 by eiriksm, nod_: JSDoc filter module

parent a9378920
......@@ -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();
......
......@@ -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 = {
......
......@@ -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) {
......
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