diff options
Diffstat (limited to 'app/assets/javascripts/peek.js')
-rw-r--r-- | app/assets/javascripts/peek.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/javascripts/peek.js b/app/assets/javascripts/peek.js index 4ba23ea1a09..6af0242246f 100644 --- a/app/assets/javascripts/peek.js +++ b/app/assets/javascripts/peek.js @@ -2,3 +2,15 @@ import 'vendor/jquery.tipsy'; import 'vendor/peek'; import 'vendor/peek.performance_bar'; import 'vendor/peek.rblineprof'; + +(function() { + $(document).on('click', '#peek-show-queries', function(e) { + console.log('peek!'); + var $modal; + $modal = $('#modal-peek-pg-queries'); + if ($modal.length) { + $modal.modal('toggle'); + } + return e.preventDefault(); + }); +}).call(window); |