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

peek.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 60f8bdd14c089122cd44c2b5a8ca84907e0c8d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import 'vendor/peek';
import 'vendor/peek.performance_bar';

$(document).on('click', '#peek-show-queries', function(e) {
  e.preventDefault();
  $('.peek-rblineprof-modal').hide();
  let $modal = $('#modal-peek-pg-queries');
  if ($modal.length) {
    $modal.modal('toggle');
  }
});

$(document).on('click', '.js-lineprof-file', function(e) {
  e.preventDefault();
  $(this).parents('.heading').next('div').toggle();
});