From 9e1eb947b4c8e7082d893f54f240bfd21efeabe4 Mon Sep 17 00:00:00 2001 From: Manuel Bernhardt Date: Fri, 15 May 2015 12:09:26 +0200 Subject: [PATCH] Monitoring stream on keypress As suggested by @nurkiewicz during his GeeCON 2015 talk, pressing the enter key in the input field now directly starts the monitor. --- hystrix-dashboard/src/main/webapp/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hystrix-dashboard/src/main/webapp/index.html b/hystrix-dashboard/src/main/webapp/index.html index 8a1531e73..dafafb61a 100644 --- a/hystrix-dashboard/src/main/webapp/index.html +++ b/hystrix-dashboard/src/main/webapp/index.html @@ -26,6 +26,13 @@ $('#message').html("The 'stream' value is required."); } } + $(document).ready(function() { + $('#stream').keypress(function(e) { + if(e.which == 13) { + sendToMonitor(); + } + }); + }); @@ -57,4 +64,4 @@

Hystrix Dashboard

- \ No newline at end of file +