Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
charts
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
charts
Merge requests
!19
An error occurred while fetching the assigned milestone of the selected merge_request.
Issue
#3267238
: Replace JQuery with vanilla Javascript in charts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3267238
: Replace JQuery with vanilla Javascript in charts
issue/charts-3267238:3267238-replace-jquery-with
into
5.0.x
Overview
0
Commits
7
Pipelines
0
Changes
11
Open
Nia Kathoni
requested to merge
issue/charts-3267238:3267238-replace-jquery-with
into
5.0.x
3 years ago
Overview
0
Commits
7
Pipelines
0
Changes
11
Expand
0
0
Merge request reports
Compare
5.0.x
version 3
0a38897f
3 years ago
version 2
a3ae2a08
3 years ago
version 1
abd43226
3 years ago
5.0.x (base)
and
latest version
latest version
5051d24c
7 commits,
3 years ago
version 3
0a38897f
6 commits,
3 years ago
version 2
a3ae2a08
2 commits,
3 years ago
version 1
abd43226
1 commit,
3 years ago
11 files
+
105
−
94
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
Conflict: This file was modified in both the source and target branches. Ask someone with write access to resolve it.
modules/charts_billboard/js/charts_billboard.js
+
6
−
5
Options
@@ -2,15 +2,16 @@
* @file
* JavaScript integration between Billboard and Drupal.
*/
(
function
(
$
,
Drupal
,
once
)
{
(
function
(
Drupal
,
once
)
{
'
use strict
'
;
Drupal
.
behaviors
.
chartsBillboard
=
{
attach
:
function
(
context
,
settings
)
{
var
contents
=
new
Drupal
.
Charts
.
Contents
();
const
contents
=
new
Drupal
.
Charts
.
Contents
();
once
(
'
charts-billboard
'
,
'
.charts-billboard
'
,
context
).
forEach
(
function
(
element
)
{
var
id
=
element
[
'
attributes
'
][
'
id
'
][
'
value
'
];
bb
.
generate
(
contents
.
getData
(
id
));
bb
.
generate
(
contents
.
getData
(
element
.
id
));
});
}
};
}(
jQuery
,
Drupal
,
once
));
}(
Drupal
,
once
));
Loading