From d80f3cd75e700b6e62910865bfd36734644ffa89 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 4 Mar 2020 09:08:20 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/pages/projects/blob/new/index.js | 11 ++++++++++- app/assets/javascripts/pages/projects/releases/show/index.js | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app/assets/javascripts/pages/projects/releases/show/index.js (limited to 'app/assets/javascripts/pages/projects') diff --git a/app/assets/javascripts/pages/projects/blob/new/index.js b/app/assets/javascripts/pages/projects/blob/new/index.js index 189053f3ed7..720cb249052 100644 --- a/app/assets/javascripts/pages/projects/blob/new/index.js +++ b/app/assets/javascripts/pages/projects/blob/new/index.js @@ -1,3 +1,12 @@ import initBlobBundle from '~/blob_edit/blob_bundle'; +import initPopover from '~/blob/suggest_gitlab_ci_yml'; -document.addEventListener('DOMContentLoaded', initBlobBundle); +document.addEventListener('DOMContentLoaded', () => { + initBlobBundle(); + + const suggestEl = document.querySelector('.js-suggest-gitlab-ci-yml'); + + if (suggestEl) { + initPopover(suggestEl); + } +}); diff --git a/app/assets/javascripts/pages/projects/releases/show/index.js b/app/assets/javascripts/pages/projects/releases/show/index.js new file mode 100644 index 00000000000..4e17e6ff311 --- /dev/null +++ b/app/assets/javascripts/pages/projects/releases/show/index.js @@ -0,0 +1,3 @@ +import initShowRelease from '~/releases/mount_show'; + +document.addEventListener('DOMContentLoaded', initShowRelease); -- cgit v1.2.1