summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-03-13 11:08:55 +0000
committerFatih Acet <acetfatih@gmail.com>2017-03-13 11:08:55 +0000
commit32da7602686f2b8161175d82b121deb9e01b2db5 (patch)
treee9e81b23aa5ce24db90f3305651b7fc3a1b1b873
parentd1df36e3864967f65f662c1367d3bdfe993beadd (diff)
parentc6015fb4e8e3e16046310f278bbe465ab33af648 (diff)
downloadgitlab-ce-32da7602686f2b8161175d82b121deb9e01b2db5.tar.gz
Merge branch '28385-27189-tech-debt-dropdown' into 'master'
Simplify jQuery selector See merge request !9881
-rw-r--r--app/assets/javascripts/vue_pipelines_index/stage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/stage.js b/app/assets/javascripts/vue_pipelines_index/stage.js
index f67ebd6a265..ae4f0b4a53b 100644
--- a/app/assets/javascripts/vue_pipelines_index/stage.js
+++ b/app/assets/javascripts/vue_pipelines_index/stage.js
@@ -69,7 +69,7 @@ import warningSvg from 'icons/_icon_status_warning_borderless.svg';
* target the click event of this component.
*/
stopDropdownClickPropagation() {
- $(this.$el.querySelectorAll('.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item')).on('click', (e) => {
+ $(this.$el).on('click', '.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item', (e) => {
e.stopPropagation();
});
},