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: 833e946af5c0052c88228d0a8d590d5dd2c767db (plain)
1
2
3
4
5
6
7
8
9
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();
  });
};