Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
json_field
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
json_field
Merge requests
!29
fix eslint test
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
fix eslint test
issue/json_field-3450116:eslint
into
8.x-1.x
Overview
0
Commits
31
Pipelines
27
Changes
4
Open
Patrick Kenny
requested to merge
issue/json_field-3450116:eslint
into
8.x-1.x
11 months ago
Overview
0
Commits
31
Pipelines
27
Changes
4
Expand
0
0
Merge request reports
Compare
8.x-1.x
version 26
173dff3e
6 months ago
version 25
e656a67b
8 months ago
version 24
c6a9b6cf
8 months ago
version 23
068f137e
8 months ago
version 22
e7574edd
8 months ago
version 21
bcbb63f1
10 months ago
version 20
6801ca22
10 months ago
version 19
49b9f550
11 months ago
version 18
ae4eb26b
11 months ago
version 17
25dff944
11 months ago
version 16
c158c34f
11 months ago
version 15
95c5766d
11 months ago
version 14
432d89a0
11 months ago
version 13
9037336b
11 months ago
version 12
ed741a29
11 months ago
version 11
89ca55c6
11 months ago
version 10
a197c6c7
11 months ago
version 9
32ef6974
11 months ago
version 8
513297b1
11 months ago
version 7
b7fcaee0
11 months ago
version 6
c980c505
11 months ago
version 5
11b0cb11
11 months ago
version 4
0bb98b67
11 months ago
version 3
c062dcc0
11 months ago
version 2
be1c5aeb
11 months ago
version 1
6d981c70
11 months ago
8.x-1.x (base)
and
latest version
latest version
e9f50f94
31 commits,
6 months ago
version 26
173dff3e
30 commits,
6 months ago
version 25
e656a67b
29 commits,
8 months ago
version 24
c6a9b6cf
28 commits,
8 months ago
version 23
068f137e
27 commits,
8 months ago
version 22
e7574edd
26 commits,
8 months ago
version 21
bcbb63f1
25 commits,
10 months ago
version 20
6801ca22
24 commits,
10 months ago
version 19
49b9f550
23 commits,
11 months ago
version 18
ae4eb26b
22 commits,
11 months ago
version 17
25dff944
21 commits,
11 months ago
version 16
c158c34f
20 commits,
11 months ago
version 15
95c5766d
19 commits,
11 months ago
version 14
432d89a0
17 commits,
11 months ago
version 13
9037336b
16 commits,
11 months ago
version 12
ed741a29
15 commits,
11 months ago
version 11
89ca55c6
14 commits,
11 months ago
version 10
a197c6c7
12 commits,
11 months ago
version 9
32ef6974
11 commits,
11 months ago
version 8
513297b1
9 commits,
11 months ago
version 7
b7fcaee0
8 commits,
11 months ago
version 6
c980c505
7 commits,
11 months ago
version 5
11b0cb11
6 commits,
11 months ago
version 4
0bb98b67
5 commits,
11 months ago
version 3
c062dcc0
4 commits,
11 months ago
version 2
be1c5aeb
3 commits,
11 months ago
version 1
6d981c70
1 commit,
11 months ago
4 files
+
55
−
44
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
assets/js/json_field.js
+
13
−
10
Options
@@ -4,15 +4,17 @@
*/
(
function
(
$
,
Drupal
,
drupalSettings
,
once
)
{
'
use strict
'
;
var
options
=
$
.
extend
(
drupalSettings
.
json_field
,
/**
* Default settings for this item.
*/
const
options
=
$
.
extend
(
drupalSettings
.
json_field
,
// Merge strings on top of drupalSettings so that they are not mutable.
{
strings
:
{
quickEdit
:
Drupal
.
t
(
'
Quick edit
'
)
}
}
quickEdit
:
Drupal
.
t
(
'
Quick edit
'
)
,
}
,
}
,
);
/**
@@ -21,12 +23,13 @@
* @type {Drupal~behavior}
*/
Drupal
.
behaviors
.
json_field
=
{
attach
:
function
(
context
)
{
attach
(
context
)
{
// Initialize the Quick Edit app once per page load.
$
(
once
(
'
json-field-init
'
,
'
pre.json-field
'
,
context
)).
each
(
function
()
{
$
(
this
).
parent
().
JSONView
(
$
(
this
).
parent
().
find
(
'
pre code
'
).
text
());
$
(
this
)
.
parent
()
.
JSONView
(
$
(
this
).
parent
().
find
(
'
pre code
'
).
textContent
);
});
}
}
,
};
})(
jQuery
,
Drupal
,
drupalSettings
,
once
);
Loading