aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-07-25 15:47:37 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-07-25 15:47:37 -0300
commitc74a1fd4df6244b941da095c229fddbfcfbe30b9 (patch)
tree0a8eb22dd6dcb3dbd6c03fac2ab38c10f9385687
parent3ce7f6ade6709b3efa7ed17c1795fc068576fbdb (diff)
downloadpfsense-packages-c74a1fd4df6244b941da095c229fddbfcfbe30b9.tar.gz
pfsense-packages-c74a1fd4df6244b941da095c229fddbfcfbe30b9.tar.bz2
pfsense-packages-c74a1fd4df6244b941da095c229fddbfcfbe30b9.zip
Fix jQuery detection
-rw-r--r--config/openbgpd/openbgpd_status.php6
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>