Skip to content

Commit 3246e46

Browse files
committed
Merge pull request #794 from manuelbernhardt/patch-1
Monitoring stream when pressing the enter key
2 parents 9002320 + 9e1eb94 commit 3246e46

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hystrix-dashboard/src/main/webapp/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
$('#message').html("The 'stream' value is required.");
2727
}
2828
}
29+
$(document).ready(function() {
30+
$('#stream').keypress(function(e) {
31+
if(e.which == 13) {
32+
sendToMonitor();
33+
}
34+
});
35+
});
2936
</script>
3037
</head>
3138
<body>
@@ -57,4 +64,4 @@ <h2>Hystrix Dashboard</h2>
5764
</center>
5865
</div>
5966
</body>
60-
</html>
67+
</html>

0 commit comments

Comments
 (0)