YaCy-Ui: fixed reverse order display of search results...

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4868 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 17 years ago
parent b09af53643
commit c5f4f518e2

@ -2,14 +2,11 @@
//<![CDATA[
$(function() {
$("#side3").accordion("activate", 0);
var pagination = tabid + " .pagination";
$('<div class="pagination"></div>').html('[loading...]').appendTo(tabid);
$.ajax({
type: "GET",
url: query,
dataType: "xml",
success: function(xml) {
alert($.browser.version);
if ($.browser.mozilla && ($.browser.version > 1.8)) {
var totalResults = parseInt($(xml).find('opensearch\\:totalResults').text().replace(".","","g"));
var startIndex = parseInt($(xml).find('opensearch\\:startIndex').text());
@ -31,13 +28,6 @@
} else {
var currentPage = 0;
}
$(pagination).pagination(totalResults, {
current_page:currentPage,
items_per_page:itemsPerPage,
num_edge_entries:1,
num_display_entries:10,
callback: loadContents
});
$(xml).find('item').each(function(){
var title = $(this).find('title').text();
@ -46,8 +36,19 @@
var guid = $(this).find('guid').text();
$('<div class="searchresults"></div>')
.html('<h3 class="linktitle"><a href="' +link+ '">' +title+ '</a></h3><p class="snippet">' +desc+ '</p><p class="url"><a href="' +link+ '" id="' +guid+ '" >' +link+ '</a></p>')
.prependTo(tabid);
.appendTo(tabid);
}); //close each(
var pagination = tabid + " .pagination";
$('<div class="pagination"></div>').html('[loading...]').appendTo(tabid);
$(pagination).pagination(totalResults, {
current_page:currentPage,
items_per_page:itemsPerPage,
num_edge_entries:1,
num_display_entries:10,
callback: loadContents
});
$(".linktitle a").faviconize({
position: "before",
defaultImage: "img-2/article.png",

Loading…
Cancel
Save