Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-11 03:09:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-11 03:09:17 +0300
commitaa0e3dcce3143ef4c3d8a481a216bf28ae31a3e3 (patch)
tree8a39ef76ddc367e7747e76621ee3ee072b0ea066 /app/assets/javascripts/deprecated_jquery_dropdown
parent6ae4485274362bf656fae249a1409266a211d255 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/deprecated_jquery_dropdown')
-rw-r--r--app/assets/javascripts/deprecated_jquery_dropdown/render.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/deprecated_jquery_dropdown/render.js b/app/assets/javascripts/deprecated_jquery_dropdown/render.js
index f10c2d82b61..37287b9d981 100644
--- a/app/assets/javascripts/deprecated_jquery_dropdown/render.js
+++ b/app/assets/javascripts/deprecated_jquery_dropdown/render.js
@@ -107,10 +107,10 @@ function createLink(data, selected, options, index) {
}
if (options.trackSuggestionClickedLabel) {
- link.dataset.trackAction = 'click_text';
- link.dataset.trackLabel = options.trackSuggestionClickedLabel;
- link.dataset.trackValue = index;
- link.dataset.trackProperty = slugify(data.category || 'no-category');
+ link.setAttribute('data-track-action', 'click_text');
+ link.setAttribute('data-track-label', options.trackSuggestionClickedLabel);
+ link.setAttribute('data-track-value', index);
+ link.setAttribute('data-track-property', slugify(data.category || 'no-category'));
}
link.classList.toggle('is-active', selected);