diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template index 7f8aaf1e5..cac55eaa6 100644 --- a/htroot/env/templates/header.template +++ b/htroot/env/templates/header.template @@ -13,7 +13,8 @@ yconf = { url : ' ', global : true, - width : 500, + width : 500, + height : 600, theme : 'start', title : 'YaCy Widget', load_js : false, @@ -29,7 +30,7 @@

- + diff --git a/htroot/js/yacyinteractive.js b/htroot/js/yacyinteractive.js index 6faab7818..bc274fbd3 100644 --- a/htroot/js/yacyinteractive.js +++ b/htroot/js/yacyinteractive.js @@ -12,7 +12,7 @@ function search(query) { else if (window.ActiveXObject) { // IE self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } - self.xmlHttpReq.open('GET', "yacysearch.json?verify=false&resource=local&maximumRecords=100&nav=topics&query=" + query, true); + self.xmlHttpReq.open('GET', "yacysearch.json?verify=false&resource=local&maximumRecords=30&nav=none&query=" + query, true); self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); self.xmlHttpReq.onreadystatechange = function() { if (self.xmlHttpReq.readyState == 4) { @@ -40,7 +40,7 @@ function updatepage(str) { var topics = navget(navigation, "topics"); var html = "total results = " + totalResults; - if (topics.length > 0) { + if (topics && topics.length > 0) { var topwords = ""; for (var i = 0; i < topics.elements.length; i++) { topwords += "" + topics.elements[i].name + " ";