Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
225
Merge Requests
225
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
57694c7d
Commit
57694c7d
authored
Jul 28, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2521946
by eiriksm: JSDoc field_ui module
parent
231b59ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
core/modules/field_ui/field_ui.js
core/modules/field_ui/field_ui.js
+16
-0
No files found.
core/modules/field_ui/field_ui.js
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
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment