ef4ccb7e26
Signed-off-by: Rémy Coutable <remy@rymai.me>
16 lines
433 B
JavaScript
16 lines
433 B
JavaScript
import 'vendor/peek';
|
|
import 'vendor/peek.performance_bar';
|
|
|
|
$(document).on('click', '#peek-show-queries', (e) => {
|
|
e.preventDefault();
|
|
$('.peek-rblineprof-modal').hide();
|
|
const $modal = $('#modal-peek-pg-queries');
|
|
if ($modal.length) {
|
|
$modal.modal('toggle');
|
|
}
|
|
});
|
|
|
|
$(document).on('click', '.js-lineprof-file', (e) => {
|
|
e.preventDefault();
|
|
$(e.target).parents('.peek-rblineprof-file').find('.data').toggle();
|
|
});
|