diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-07-25 15:47:37 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-07-25 15:47:37 -0300 |
commit | c74a1fd4df6244b941da095c229fddbfcfbe30b9 (patch) | |
tree | 0a8eb22dd6dcb3dbd6c03fac2ab38c10f9385687 /config/openbgpd/openbgpd_status.php | |
parent | 3ce7f6ade6709b3efa7ed17c1795fc068576fbdb (diff) | |
download | pfsense-packages-c74a1fd4df6244b941da095c229fddbfcfbe30b9.tar.gz pfsense-packages-c74a1fd4df6244b941da095c229fddbfcfbe30b9.tar.bz2 pfsense-packages-c74a1fd4df6244b941da095c229fddbfcfbe30b9.zip |
Fix jQuery detection
Diffstat (limited to 'config/openbgpd/openbgpd_status.php')
-rw-r--r-- | config/openbgpd/openbgpd_status.php | 6 |
1 files changed, 3 insertions, 3 deletions
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);}); //]]> </script> |