Skip to content

Commit

Permalink
*) Bugfix for problem with ajax graphic
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3815 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Jun 7, 2007
1 parent 9d6605a commit e75ca85
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions htroot/js/IndexCreate.js
Expand Up @@ -40,12 +40,14 @@ function handleResponse(){
}

// getting the sitemap URL contained in the robots.txt
sitemap="";
if(response.getElementsByTagName("sitemap")[0].firstChild!=null){
sitemap=response.getElementsByTagName("sitemap")[0].firstChild.nodeValue;
}
document.getElementsByName("sitemapURL")[0].value=sitemap;
document.getElementById("sitemap").disabled=false;
if (document.getElementsByName("sitemapURL").length > 0) {
sitemap="";
if(response.getElementsByTagName("sitemap")[0].firstChild!=null){
sitemap=response.getElementsByTagName("sitemap")[0].firstChild.nodeValue;
}
document.getElementsByName("sitemapURL")[0].value=sitemap;
document.getElementById("sitemap").disabled=false;
}

// clear the ajax image
document.getElementsByName("ajax")[0].setAttribute("src", AJAX_OFF);
Expand Down

0 comments on commit e75ca85

Please sign in to comment.