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

blob_fork_suggestion.js « blob « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa9a4e1c99a916c2d172db781f7e8bdd692d2bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function BlobForkSuggestion(openButton, cancelButton, suggestionSection) {
  if (openButton) {
    openButton.addEventListener('click', () => {
      suggestionSection.classList.remove('hidden');
    });
  }

  if (cancelButton) {
    cancelButton.addEventListener('click', () => {
      suggestionSection.classList.add('hidden');
    });
  }
}

export default BlobForkSuggestion;