Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

more stability on watchcrawler

lotusfbca4f835498
diff --git a/htroot/WatchCrawler_p.html b/htroot/WatchCrawler_p.html
index 90024cd98..7868745ef 100644
--- a/htroot/WatchCrawler_p.html
+++ b/htroot/WatchCrawler_p.html
@@ -8,7 +8,7 @@
<script type="text/javascript" src="/js/xml.js"></script>
<script type="text/javascript" src="/js/html.js"></script>
<script type="text/javascript" src="/js/WatchCrawler.js"></script></head>
-<body id="watchCrawler">
+<body id="watchCrawler" onload="initWatchCrawler();">
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<h2>Crawler Queues</h2>
diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js
index f4ff0053d..a6e5df224 100644
--- a/htroot/js/WatchCrawler.js
+++ b/htroot/js/WatchCrawler.js
@@ -12,9 +12,11 @@ var changing=false; //change the interval
var statusLoaded=true;
var queueLoaded=true;
-refresh();
-//loadInterval=window.setInterval("refresh()", refreshInterval*1000);
-countInterval=window.setInterval("countdown()", 1000);
+function initWatchCrawler(){
+ refresh();
+ //loadInterval=window.setInterval("refresh()", refreshInterval*1000);
+ countInterval=window.setInterval("countdown()", 1000);
+}
function changeInterval(){
if(!changing){