From f010353d3ebff83788c9b5290532564eb7ff0fb2 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 26 Jan 2018 08:33:09 +0100 Subject: [PATCH] dyndns, rfc2136, change document ready() to window.load() --- dns/dyndns/src/www/widgets/widgets/dyn_dns_status.widget.php | 2 +- dns/rfc2136/src/www/widgets/widgets/rfc2136.widget.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/dyndns/src/www/widgets/widgets/dyn_dns_status.widget.php b/dns/dyndns/src/www/widgets/widgets/dyn_dns_status.widget.php index 33c8d1681..3e67f40a7 100644 --- a/dns/dyndns/src/www/widgets/widgets/dyn_dns_status.widget.php +++ b/dns/dyndns/src/www/widgets/widgets/dyn_dns_status.widget.php @@ -157,7 +157,7 @@ if (!empty($_REQUEST['getdyndnsstatus'])) { jQuery(divlabel).prop('innerHTML',responseStrings[count]); } } - $( document ).ready(function() { + $(window).load(function() { // Do the first status check 2 seconds after the dashboard opens setTimeout('dyndns_getstatus()', 2000); }); diff --git a/dns/rfc2136/src/www/widgets/widgets/rfc2136.widget.php b/dns/rfc2136/src/www/widgets/widgets/rfc2136.widget.php index efc33d855..b16b89f9e 100644 --- a/dns/rfc2136/src/www/widgets/widgets/rfc2136.widget.php +++ b/dns/rfc2136/src/www/widgets/widgets/rfc2136.widget.php @@ -157,7 +157,7 @@ if (!empty($_REQUEST['getrfc2136status'])) { jQuery(divlabel).prop('innerHTML',responseStrings[count]); } } - $( document ).ready(function() { + $(window).load(function() { // Do the first status check 2 seconds after the dashboard opens setTimeout('rfc2136_getstatus()', 2000); });