From 4bf57b9cd2c6a9b5a5100dd232ef9a3570484fb2 Mon Sep 17 00:00:00 2001 From: MadeInChina Date: Wed, 29 Jul 2020 03:21:19 +0800 Subject: [PATCH] Fix spring-cloud-starter-hystrix-dashboard jquery3.4.1 usage error (#3816) (#3817) --- .../src/main/resources/templates/hystrix/monitor.ftlh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftlh b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftlh index 36b67a640..9f684fbb2 100644 --- a/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftlh +++ b/spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/hystrix/monitor.ftlh @@ -107,8 +107,8 @@ } } console.log("Command Stream: " + commandStream) - - $(window).load(function() { // within load with a setTimeout to prevent the infinite spinner + + $(window).on("load", function () { // within load with a setTimeout to prevent the infinite spinner setTimeout(function() { if(commandStream == undefined) { console.log("commandStream is undefined") @@ -146,7 +146,7 @@ // thread pool var dependencyThreadPoolMonitor = new HystrixThreadPoolMonitor('dependencyThreadPools'); - $(window).load(function() { // within load with a setTimeout to prevent the infinite spinner + $(window).on("load", function () { // within load with a setTimeout to prevent the infinite spinner setTimeout(function() { if(poolStream == undefined) { console.log("poolStream is undefined")