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>2020-12-24 00:10:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-24 00:10:24 +0300
commit5838993b5f3e2d861d9dd7c82dfeea71506b9fc2 (patch)
treecaab6621fb79f06a355f802dc885982f746b544d /app/assets/javascripts/droplab
parentb8d021cb606ac86f41a0ef9dacd133a9677f8414 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/droplab')
-rw-r--r--app/assets/javascripts/droplab/drop_down.js4
-rw-r--r--app/assets/javascripts/droplab/drop_lab.js10
-rw-r--r--app/assets/javascripts/droplab/hook_button.js4
-rw-r--r--app/assets/javascripts/droplab/hook_input.js4
-rw-r--r--app/assets/javascripts/droplab/plugins/ajax.js2
-rw-r--r--app/assets/javascripts/droplab/plugins/ajax_filter.js2
-rw-r--r--app/assets/javascripts/droplab/plugins/input_setter.js2
7 files changed, 14 insertions, 14 deletions
diff --git a/app/assets/javascripts/droplab/drop_down.js b/app/assets/javascripts/droplab/drop_down.js
index 31d32fb5060..f4a0b3ed727 100644
--- a/app/assets/javascripts/droplab/drop_down.js
+++ b/app/assets/javascripts/droplab/drop_down.js
@@ -68,7 +68,7 @@ class DropDown {
removeSelectedClasses() {
const items = this.items || this.getItems();
- items.forEach(item => item.classList.remove(SELECTED_CLASS));
+ items.forEach((item) => item.classList.remove(SELECTED_CLASS));
}
addEvents() {
@@ -162,7 +162,7 @@ class DropDown {
static setImagesSrc(template) {
const images = [...template.querySelectorAll('img[data-src]')];
- images.forEach(image => {
+ images.forEach((image) => {
const img = image;
img.src = img.getAttribute('data-src');
diff --git a/app/assets/javascripts/droplab/drop_lab.js b/app/assets/javascripts/droplab/drop_lab.js
index 33c05404493..537a05aebb9 100644
--- a/app/assets/javascripts/droplab/drop_lab.js
+++ b/app/assets/javascripts/droplab/drop_lab.js
@@ -28,7 +28,7 @@ class DropLab {
}
destroy() {
- this.hooks.forEach(hook => hook.destroy());
+ this.hooks.forEach((hook) => hook.destroy());
this.hooks = [];
this.removeEvents();
}
@@ -51,7 +51,7 @@ class DropLab {
}
processData(trigger, data, methodName) {
- this.hooks.forEach(hook => {
+ this.hooks.forEach((hook) => {
if (Array.isArray(trigger)) hook.list[methodName](trigger);
if (hook.trigger.id === trigger) hook.list[methodName](data);
@@ -70,7 +70,7 @@ class DropLab {
if (utils.isDropDownParts(thisTag, this.hooks)) return;
if (utils.isDropDownParts(e.target, this.hooks)) return;
- this.hooks.forEach(hook => hook.list.hide());
+ this.hooks.forEach((hook) => hook.list.hide());
}
removeEvents() {
@@ -115,7 +115,7 @@ class DropLab {
}
addHooks(hooks, plugins, config) {
- hooks.forEach(hook => this.addHook(hook, null, plugins, config));
+ hooks.forEach((hook) => this.addHook(hook, null, plugins, config));
return this;
}
@@ -147,7 +147,7 @@ class DropLab {
this.fireReady();
- this.queuedData.forEach(data => this.addData(data));
+ this.queuedData.forEach((data) => this.addData(data));
this.queuedData = [];
return this;
diff --git a/app/assets/javascripts/droplab/hook_button.js b/app/assets/javascripts/droplab/hook_button.js
index af45eba74e7..c58d0052251 100644
--- a/app/assets/javascripts/droplab/hook_button.js
+++ b/app/assets/javascripts/droplab/hook_button.js
@@ -14,7 +14,7 @@ class HookButton extends Hook {
}
addPlugins() {
- this.plugins.forEach(plugin => plugin.init(this));
+ this.plugins.forEach((plugin) => plugin.init(this));
}
clicked(e) {
@@ -44,7 +44,7 @@ class HookButton extends Hook {
}
removePlugins() {
- this.plugins.forEach(plugin => plugin.destroy());
+ this.plugins.forEach((plugin) => plugin.destroy());
}
destroy() {
diff --git a/app/assets/javascripts/droplab/hook_input.js b/app/assets/javascripts/droplab/hook_input.js
index 19131a64f2c..c523dae347f 100644
--- a/app/assets/javascripts/droplab/hook_input.js
+++ b/app/assets/javascripts/droplab/hook_input.js
@@ -14,7 +14,7 @@ class HookInput extends Hook {
}
addPlugins() {
- this.plugins.forEach(plugin => plugin.init(this));
+ this.plugins.forEach((plugin) => plugin.init(this));
}
addEvents() {
@@ -101,7 +101,7 @@ class HookInput extends Hook {
}
removePlugins() {
- this.plugins.forEach(plugin => plugin.destroy());
+ this.plugins.forEach((plugin) => plugin.destroy());
}
destroy() {
diff --git a/app/assets/javascripts/droplab/plugins/ajax.js b/app/assets/javascripts/droplab/plugins/ajax.js
index fce29649c7b..77d60454d1a 100644
--- a/app/assets/javascripts/droplab/plugins/ajax.js
+++ b/app/assets/javascripts/droplab/plugins/ajax.js
@@ -43,7 +43,7 @@ const Ajax = {
return AjaxCache.retrieve(config.endpoint)
.then(self.preprocessing.bind(null, config))
- .then(data => self._loadData(data, config, self))
+ .then((data) => self._loadData(data, config, self))
.catch(config.onError);
},
destroy: function () {
diff --git a/app/assets/javascripts/droplab/plugins/ajax_filter.js b/app/assets/javascripts/droplab/plugins/ajax_filter.js
index 94ccae1a442..ac4d44adc17 100644
--- a/app/assets/javascripts/droplab/plugins/ajax_filter.js
+++ b/app/assets/javascripts/droplab/plugins/ajax_filter.js
@@ -63,7 +63,7 @@ const AjaxFilter = {
params[config.searchKey] = searchValue;
var url = config.endpoint + this.buildParams(params);
return AjaxCache.retrieve(url)
- .then(data => {
+ .then((data) => {
this._loadData(data, config);
if (config.onLoadingFinished) {
config.onLoadingFinished(data);
diff --git a/app/assets/javascripts/droplab/plugins/input_setter.js b/app/assets/javascripts/droplab/plugins/input_setter.js
index 6cfc738a1e3..148d9a35b81 100644
--- a/app/assets/javascripts/droplab/plugins/input_setter.js
+++ b/app/assets/javascripts/droplab/plugins/input_setter.js
@@ -27,7 +27,7 @@ const InputSetter = {
if (!Array.isArray(this.config)) this.config = [this.config];
- this.config.forEach(config => this.setInput(config, selectedItem));
+ this.config.forEach((config) => this.setInput(config, selectedItem));
},
setInput(config, selectedItem) {