Skip to content

Commit

Permalink
Added a title on the previous and next page pagination buttons.
Browse files Browse the repository at this point in the history
This is to clarify the meaning of these buttons for users who could
think they link respectively to the first and last results page.
  • Loading branch information
luccioman committed Dec 21, 2016
1 parent 8eb6fba commit ee6933c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htroot/js/yacysearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function renderPaginationButtons(offset, itemscount, itemsperpage, totalcount, l
var thispage = Math.floor(offset / itemsperpage);
var firstPage = thispage - (thispage % 10);
if (thispage == 0) {
resnav += "<li class=\"disabled\"><a href=\"#\">&laquo;</a></li>";
resnav += "<li class=\"disabled\"><a title=\"Previous page\" href=\"#\">&laquo;</a></li>";
} else {
resnav += "<li><a id=\"prevpage\" href=\"";
resnav += "<li><a id=\"prevpage\" title=\"Previous page\" href=\"";
resnav += (navurlbase + "&amp;startRecord=" + ((thispage - 1) * itemsperpage));
resnav += "\">&laquo;</a></li>";
}
Expand All @@ -69,9 +69,9 @@ function renderPaginationButtons(offset, itemscount, itemsperpage, totalcount, l
}
}
if ((localQuery && thispage >= (totalPagesNb - 1)) || (!localQuery && thispage >= (numberofpages - 1))) {
resnav += "<li class=\"disabled\"><a href=\"#\">&raquo;</a></li>";
resnav += "<li class=\"disabled\"><a href=\"#\" title=\"Next page\">&raquo;</a></li>";
} else {
resnav += "<li><a id=\"nextpage\" href=\"";
resnav += "<li><a id=\"nextpage\" title=\"Next page\" href=\"";
resnav += (navurlbase + "&amp;startRecord=" + ((thispage + 1) * itemsperpage));
resnav += "\">&raquo;</a>";
}
Expand Down

0 comments on commit ee6933c

Please sign in to comment.