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

init_details_button.js « info « commit_box « projects « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc2c16b9e83eb89ea94401c6a34e1ae6bc307512 (plain)
1
2
3
4
5
6
7
export const initDetailsButton = () => {
  document.querySelector('.commit-info').addEventListener('click', function expand(e) {
    e.preventDefault();
    this.querySelector('.js-details-content').classList.remove('hide');
    this.querySelector('.js-details-expand').classList.add('gl-display-none');
  });
};