diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js
index 0b397b121..263e2e536 100644
--- a/htroot/js/yacysearch.js
+++ b/htroot/js/yacysearch.js
@@ -42,64 +42,135 @@ function fadeOutBar() {
}
/**
+ * @param buttonsList the DOM list element containing the pagination buttons
* @param offset item number to start with
* @param itemsperpage count of items requested per page
* @param totalcount count of items available from YaCy node for this query
- * @returns pagination buttons
+ * @param navurlbase the search url without pagination parameters
+ * @param localQuery when true the search query is limited to the YaCy peer local data
+ * @param jsResort when true results resorting with JavaScript is enabled
*/
-function renderPaginationButtons(offset, itemsperpage, totalcount, navurlbase, localQuery, jsResort) {
- var resnav = "
";
- return resnav;
}
/**
* Parses a string representing an integer value
- * @param strIntValue formatted string
- * @returns the number value or undefined when the string is undefined, or NaN when the string is not a number
+ *
+ * @param strIntValue
+ * formatted string
+ * @returns the number value or undefined when the string is undefined, or NaN
+ * when the string is not a number
*/
function parseFormattedInt(strIntValue) {
var inValue;
@@ -187,9 +258,9 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localIndexCoun
}
progresseBarElement.setAttribute('style',"width:" + percent + "%");
}
- var resnavElement = document.getElementById("resNav");
- if (resnavElement != null && !jsResort) {
- resnavElement.innerHTML = renderPaginationButtons(offsetIntValue, itemsperpageIntValue, totalcountIntValue, navurlbase, localQuery, jsResort);
+ var buttonsList = document.getElementById("paginationButtons");
+ if (buttonsList != null && !jsResort) {
+ renderPaginationButtons(buttonsList, offsetIntValue, itemsperpageIntValue, totalcountIntValue, navurlbase, localQuery, jsResort);
}
}
diff --git a/htroot/js/yacysort.js b/htroot/js/yacysort.js
index fcb4f3f7b..fb0b378b8 100644
--- a/htroot/js/yacysort.js
+++ b/htroot/js/yacysort.js
@@ -87,7 +87,10 @@ var displayPage = function(isPageChange, pageNumber) {
$("#offset").html(offset);
$("#itemscount").html(itemscount);
- $("#resNav").html(renderPaginationButtons(offset, requestedResults, totalcount, null, theLocalQuery, true));
+ var buttonsList = document.getElementById("paginationButtons");
+ if(buttonsList != null) {
+ renderPaginationButtons(buttonsList, offset, requestedResults, totalcount, null, theLocalQuery, true);
+ }
//latestinfo();
diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html
index 3736c0d57..4c7b6417b 100644
--- a/htroot/yacysearch.html
+++ b/htroot/yacysearch.html
@@ -211,7 +211,13 @@ document.getElementById("Enter").innerHTML = "search again";
::
::
::
-
+
+
+
::
#(/num-results)#