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: 032fbf5316a1ae67fec69ab615a241a3c2ab949d (plain)
1
2
3
4
5
6
7
8
9
10
11
import $ from 'jquery';

export const initDetailsButton = () => {
  $('body').on('click', '.js-details-expand', function expand(e) {
    e.preventDefault();
    $(this)
      .next('.js-details-content')
      .removeClass('hide');
    $(this).hide();
  });
};