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

details_behavior.js « behaviors « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3631d1b74ac17a6e9da357919cedc1c72f1a8861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(function() {
  $(function() {
    $("body").on("click", ".js-details-target", function() {
      var container;
      container = $(this).closest(".js-details-container");
      return container.toggleClass("open");
    });
    return $("body").on("click", ".js-details-expand", function(e) {
      $(this).next('.js-details-content').removeClass("hide");
      $(this).hide();
      return e.preventDefault();
    });
  });

}).call(this);