2017-05-17 07:20:55 -04:00
|
|
|
import 'vendor/peek';
|
|
|
|
import 'vendor/peek.performance_bar';
|
2017-06-06 15:24:08 -04:00
|
|
|
|
2017-06-07 17:51:13 -04:00
|
|
|
$(document).on('click', '#peek-show-queries', (e) => {
|
2017-06-07 13:55:07 -04:00
|
|
|
e.preventDefault();
|
|
|
|
$('.peek-rblineprof-modal').hide();
|
2017-06-07 17:51:13 -04:00
|
|
|
const $modal = $('#modal-peek-pg-queries');
|
2017-06-07 13:55:07 -04:00
|
|
|
if ($modal.length) {
|
|
|
|
$modal.modal('toggle');
|
|
|
|
}
|
|
|
|
});
|
2017-06-07 10:51:15 -04:00
|
|
|
|
2017-06-07 17:51:13 -04:00
|
|
|
$(document).on('click', '.js-lineprof-file', (e) => {
|
2017-06-07 13:55:07 -04:00
|
|
|
e.preventDefault();
|
2017-06-08 12:49:11 -04:00
|
|
|
$(e.target).parents('.peek-rblineprof-file').find('.data').toggle();
|
2017-06-07 13:55:07 -04:00
|
|
|
});
|