Index

misc/active-link.js

Attaches behaviors for Drupal's active link marking.

misc/ajax.js

Provides Ajax page updating via jQuery $.ajax.

Ajax is a method of making a request via JavaScript while viewing an HTML page. The request returns an array of commands encoded in JSON, which is then executed to make any changes that are necessary to the page.

Drupal uses this file to enhance form elements with #ajax['url'] and #ajax['wrapper'] properties. If set, this file will automatically be included to provide Ajax capabilities.

misc/announce.js

Adds an HTML element and method to trigger audio UAs to read system messages.

Use Drupal.announce to indicate to screen reader users that an element on the page has changed state. For instance, if clicking a link loads 10 more items into a list, one might announce the change like this.

Example

$('#search-list')
  .on('itemInsert', function (event, data) {
    // Insert the new items.
    $(data.container.el).append(data.items.el);
    // Announce the change to the page contents.
    Drupal.announce(Drupal.t('@count items added to @container',
      {'@count': data.items.length, '@container': data.container.title}
    ));
  });

misc/autocomplete.js

Autocomplete based on jQuery UI.

misc/batch.js

Drupal's batch API.

misc/collapse.js

Polyfill for HTML5 details elements.

misc/date.js

Polyfill for HTML5 date input.

misc/debounce.js

Adapted from underscore.js with the addition Drupal namespace.

misc/details-aria.js

Add aria attribute handling for details and summary elements.

misc/dialog/dialog.ajax.js

Extends the Drupal AJAX functionality to integrate the dialog API.

misc/dialog/dialog.jquery-ui.js

Adds default classes to buttons for styling purposes.

misc/dialog/dialog.js

misc/dialog/dialog.position.js

Positioning extensions for dialogs.

misc/displace.js

Manages elements that can offset the size of the viewport.

Measures and reports viewport offset dimensions from elements like the toolbar that can potentially displace the positioning of other elements.

misc/dropbutton/dropbutton.js

Dropbutton feature.

misc/drupal.js

Defines the Drupal JavaScript API.

misc/drupalSettingsLoader.js

Parse inline JSON and initialize the drupalSettings global object.

misc/form.js

Form features.

misc/machine-name.js

Machine name functionality.

misc/progress.js

Progress bar.

misc/states.js

Drupal's states library.

misc/tabbingmanager.js

Manages page tabbing modifications made by modules.

misc/tabledrag.js

Provide dragging capabilities to admin uis.

misc/tableheader.js

Sticky table headers.

misc/tableresponsive.js

Responsive table functionality.

misc/tableselect.js

Table select functionality.

misc/timezone.js

Timezone detection.

misc/vertical-tabs.js

Define vertical tabs functionality.

modules/big_pipe/js/big_pipe.js

Renders BigPipe placeholders using Drupal's Ajax system.

modules/block/js/block.admin.js

Block admin behaviors.

modules/block/js/block.js

Block behaviors.

modules/block_content/js/block_content.js

Defines Javascript behaviors for the block_content module.

modules/book/book.js

Javascript behaviors for the Book module.

modules/ckeditor/js/ckeditor.admin.js

CKEditor button and group configuration user interface.

modules/ckeditor/js/ckeditor.drupalimage.admin.js

CKEditor 'drupalimage' plugin admin behavior.

modules/ckeditor/js/ckeditor.js

modules/ckeditor/js/ckeditor.stylescombo.admin.js

CKEditor StylesCombo admin behavior.

modules/ckeditor/js/models/Model.js

A Backbone Model for the state of a CKEditor toolbar configuration .

modules/ckeditor/js/views/AuralView.js

A Backbone View that provides the aural view of CKEditor toolbar configuration.

modules/ckeditor/js/views/ControllerView.js

A Backbone View acting as a controller for CKEditor toolbar configuration.

modules/ckeditor/js/views/KeyboardView.js

Backbone View providing the aural view of CKEditor keyboard UX configuration.

modules/ckeditor/js/views/VisualView.js

A Backbone View that provides the visual UX view of CKEditor toolbar configuration.

modules/color/color.js

Attaches the behaviors for the Color module.

modules/color/preview.js

Attaches preview-related behavior for the Color module.

modules/color/tests/modules/color_test/themes/color_test_theme/js/color_test_theme-fontsize.js

Adds javascript functions for font resizing.

modules/comment/comment-entity-form.js

Attaches comment behaviors to the entity form.

modules/comment/js/comment-by-viewer.js

Attaches behaviors for the Comment module's "by-viewer" class.

modules/comment/js/comment-new-indicator.js

Attaches behaviors for the Comment module's "new" indicator.

May only be loaded for authenticated users, with the History module installed.

modules/comment/js/node-new-comments-link.js

Attaches behaviors for the Comment module's "X new comments" link.

May only be loaded for authenticated users, with the History module installed.

modules/content_translation/content_translation.admin.js

Content Translation admin behaviors.

modules/contextual/js/contextual.js

Attaches behaviors for the Contextual module.

modules/contextual/js/contextual.toolbar.js

Attaches behaviors for the Contextual module's edit toolbar tab.

modules/contextual/js/models/StateModel.js

A Backbone Model for the state of a contextual link's trigger, list & region.

modules/contextual/js/toolbar/models/StateModel.js

A Backbone Model for the state of Contextual module's edit toolbar tab.

modules/contextual/js/toolbar/views/AuralView.js

A Backbone View that provides the aural view of the edit mode toggle.

modules/contextual/js/toolbar/views/VisualView.js

A Backbone View that provides the visual view of the edit mode toggle.

modules/contextual/js/views/AuralView.js

A Backbone View that provides the aural view of a contextual link.

modules/contextual/js/views/KeyboardView.js

A Backbone View that provides keyboard interaction for a contextual link.

modules/contextual/js/views/RegionView.js

A Backbone View that renders the visual view of a contextual region element.

modules/contextual/js/views/VisualView.js

A Backbone View that provides the visual view of a contextual link.

modules/editor/js/editor.admin.js

Provides a JavaScript API to broadcast text editor configuration changes.

Filter implementations may listen to the drupalEditorFeatureAdded, drupalEditorFeatureRemoved, and drupalEditorFeatureRemoved events on document to automatically adjust their settings based on the editor configuration.

modules/editor/js/editor.dialog.js

AJAX commands used by Editor module.

modules/editor/js/editor.formattedTextEditor.js

Text editor-based in-place editor for formatted text content in Drupal.

Depends on editor.module. Works with any (WYSIWYG) editor that implements the editor.js API, including the optional attachInlineEditor() and onChange() methods. For example, assuming that a hypothetical editor's name was "Magical Editor" and its editor.js API implementation lived at Drupal.editors.magical, this JavaScript would use:

  • Drupal.editors.magical.attachInlineEditor()

modules/editor/js/editor.js

Attaches behavior for the Editor module.

modules/field_ui/field_ui.js

Attaches the behaviors for the Field UI module.

modules/file/file.js

Provides JavaScript additions to the managed file field type.

This file provides progress bar support (if available), popup windows for file previews, and disabling of other file fields during Ajax uploads (which prevents separate file fields from accidentally uploading files).

modules/filter/filter.admin.js

Attaches administration-specific behavior for the Filter module.

modules/filter/filter.filter_html.admin.js

Attaches behavior for updating filter_html's settings automatically.

modules/filter/filter.js

Attaches behavior for the Filter module.

modules/history/js/history.js

JavaScript API for the History module, with client-side caching.

May only be loaded for authenticated users, with the History module enabled.

modules/history/js/mark-as-read.js

Marks the nodes listed in drupalSettings.history.nodesToMarkAsRead as read.

Uses the History module JavaScript API.

See:

modules/language/language.admin.js

Language admin behavior.

modules/locale/locale.admin.js

Locale admin behavior.

modules/locale/locale.bulk.js

Locale behavior.

modules/locale/locale.datepicker.js

Datepicker JavaScript for the Locale module.

modules/menu_ui/menu_ui.admin.js

Menu UI admin behaviors.

modules/menu_ui/menu_ui.js

Menu UI behaviors.

modules/node/content_types.js

Javascript for the node content editing form.

modules/node/node.js

Defines Javascript behaviors for the node module.

modules/node/node.preview.js

Preview behaviors.

modules/path/path.js

Attaches behaviors for the Path module.

modules/quickedit/js/editors/formEditor.js

Form-based in-place editor. Works for any field type.

modules/quickedit/js/editors/plainTextEditor.js

ContentEditable-based in-place editor for plain text content.

modules/quickedit/js/models/AppModel.js

modules/quickedit/js/models/BaseModel.js

A Backbone Model subclass that enforces validation when calling set().

modules/quickedit/js/models/EditorModel.js

modules/quickedit/js/models/EntityModel.js

A Backbone Model for the state of an in-place editable entity in the DOM.

modules/quickedit/js/models/FieldModel.js

A Backbone Model for the state of an in-place editable field in the DOM.

modules/quickedit/js/quickedit.js

Attaches behavior for the Quick Edit module.

Everything happens asynchronously, to allow for:

  • dynamically rendered contextual links
  • asynchronously retrieved (and cached) per-field in-place editing metadata
  • asynchronous setup of in-place editable field and "Quick edit" link.

To achieve this, there are several queues:

  • fieldsMetadataQueue: fields whose metadata still needs to be fetched.
  • fieldsAvailableQueue: queue of fields whose metadata is known, and for which it has been confirmed that the user has permission to edit them. However, FieldModels will only be created for them once there's a contextual link for their entity: when it's possible to initiate editing.
  • contextualLinksQueue: queue of contextual links on entities for which it is not yet known whether the user has permission to edit at >=1 of them.

modules/quickedit/js/theme.js

Provides theme functions for all of Quick Edit's client-side HTML.

modules/quickedit/js/util.js

Provides utility functions for Quick Edit.

modules/quickedit/js/views/AppView.js

modules/quickedit/js/views/ContextualLinkView.js

A Backbone View that provides a dynamic contextual link.

modules/quickedit/js/views/EditorView.js

An abstract Backbone View that controls an in-place editor.

modules/quickedit/js/views/EntityDecorationView.js

A Backbone view that decorates the in-place editable entity.

modules/quickedit/js/views/EntityToolbarView.js

A Backbone View that provides an entity level toolbar.

modules/quickedit/js/views/FieldDecorationView.js

A Backbone View that decorates the in-place edited element.

modules/quickedit/js/views/FieldToolbarView.js

A Backbone View that provides an interactive toolbar (1 per in-place editor).

modules/simpletest/simpletest.js

Simpletest behaviors.

modules/statistics/statistics.js

Statistics functionality.

modules/system/js/system.date.js

Provides date format preview feature.

modules/system/js/system.js

System behaviors.

modules/system/js/system.modules.js

Module page behaviors.

modules/system/tests/themes/test_theme/js/collapse.js

Test JS asset file for test_theme.theme.

modules/taxonomy/taxonomy.js

Taxonomy behaviors.

modules/text/text.js

Text behaviors.

modules/toolbar/js/escapeAdmin.js

Replaces the home link in toolbar with a back to site link.

modules/toolbar/js/models/MenuModel.js

A Backbone Model for collapsible menus.

modules/toolbar/js/models/ToolbarModel.js

A Backbone Model for the toolbar.

modules/toolbar/js/toolbar.js

Defines the behavior of the Drupal administration toolbar.

modules/toolbar/js/toolbar.menu.js

Builds a nested accordion widget.

Invoke on an HTML list element with the jQuery plugin pattern.

Example

$('.toolbar-menu').drupalToolbarMenu();

modules/toolbar/js/views/BodyVisualView.js

A Backbone view for the body element.

modules/toolbar/js/views/MenuVisualView.js

A Backbone view for the collapsible menus.

modules/toolbar/js/views/ToolbarAuralView.js

A Backbone view for the aural feedback of the toolbar.

modules/toolbar/js/views/ToolbarVisualView.js

A Backbone view for the toolbar element. Listens to mouse & touch.

modules/tour/js/tour.js

Attaches behaviors for the Tour module's toolbar tab.

modules/user/user.js

User behaviors.

modules/user/user.permissions.js

User permission page behaviors.

modules/views/js/ajax_view.js

Handles AJAX fetching of views, including filter submission and response.

modules/views/js/base.js

Some basic behaviors and utility functions for Views.

modules/views_ui/js/ajax.js

Handles AJAX submission and response in Views UI.

modules/views_ui/js/dialog.views.js

Views dialog behaviors.

modules/views_ui/js/views-admin.js

Some basic behaviors and utility functions for Views UI.

modules/views_ui/js/views_ui.listing.js

Views listing behaviors.