From c74a1fd4df6244b941da095c229fddbfcfbe30b9 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 25 Jul 2013 15:47:37 -0300 Subject: Fix jQuery detection --- config/openbgpd/openbgpd_status.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/openbgpd/openbgpd_status.php') diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php index 7e2c5535..68836b21 100644 --- a/config/openbgpd/openbgpd_status.php +++ b/config/openbgpd/openbgpd_status.php @@ -236,10 +236,10 @@ function execCmds() { ?> } -if (jQuery) - jQuery(document).ready(function(){setTimeout('exec_all_cmds()', 5000);}); -else +if (typeof jQuery == 'undefined') document.observe('dom:loaded', function(){setTimeout('exec_all_cmds()', 5000);}); +else + jQuery(document).ready(function(){setTimeout('exec_all_cmds()', 5000);}); //]]> -- cgit v1.2.3