Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
57694c7d
Commit
57694c7d
authored
Jul 28, 2015
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2521946
by eiriksm: JSDoc field_ui module
parent
231b59ff
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/field_ui/field_ui.js
+16
-0
16 additions, 0 deletions
core/modules/field_ui/field_ui.js
with
16 additions
and
0 deletions
core/modules/field_ui/field_ui.js
+
16
−
0
View file @
57694c7d
...
...
@@ -9,6 +9,9 @@
/**
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Adds behaviors to the field storage add form.
*/
Drupal
.
behaviors
.
fieldUIFieldStorageAddForm
=
{
attach
:
function
(
context
)
{
...
...
@@ -56,8 +59,14 @@
};
/**
* Attaches the fieldUIOverview behavior.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the fieldUIOverview behavior.
*
* @see Drupal.fieldUIOverview.attach
*/
Drupal
.
behaviors
.
fieldUIDisplayOverview
=
{
attach
:
function
(
context
,
settings
)
{
...
...
@@ -68,6 +77,8 @@
};
/**
* Namespace for the field UI overview.
*
* @namespace
*/
Drupal
.
fieldUIOverview
=
{
...
...
@@ -76,8 +87,11 @@
* Attaches the fieldUIOverview behavior.
*
* @param {HTMLTableElement} table
* The table element for the overview.
* @param {object} rowsData
* The data of the rows in the table.
* @param {object} rowHandlers
* Handlers to be added to the rows.
*/
attach
:
function
(
table
,
rowsData
,
rowHandlers
)
{
var
tableDrag
=
Drupal
.
tableDrag
[
table
.
id
];
...
...
@@ -243,6 +257,7 @@
* Additional data to be populated in the constructed object.
*
* @return {Drupal.fieldUIDisplayOverview.field}
* The field row handler constructed.
*/
Drupal
.
fieldUIDisplayOverview
.
field
=
function
(
row
,
data
)
{
this
.
row
=
row
;
...
...
@@ -263,6 +278,7 @@
* Returns the region corresponding to the current form values of the row.
*
* @return {string}
* Either 'hidden' or 'content'.
*/
getRegion
:
function
()
{
return
(
this
.
$pluginSelect
.
val
()
===
'
hidden
'
)
?
'
hidden
'
:
'
content
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment