small feature fix that limited ywidget to 5 rss items

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4816 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 17 years ago
parent 125b28622f
commit 4e0f031722

@ -75,7 +75,7 @@
jQuery(function() { jQuery(function() {
jQuery.getFeed({ jQuery.getFeed({
url: '/yacysearch.rss' + $.query.toString(), url: '/yacysearch.rss' + $.query.toString(),
success: function(feed) { success: function(feed) {
jQuery('#result').prepend('<h3>' jQuery('#result').prepend('<h3>'
+ '<a href="' + '<a href="'
+ feed.link + feed.link
@ -84,7 +84,7 @@ jQuery(function() {
+ '</a>' + '</a>'
+ '</h3>'); + '</h3>');
var html = ''; var html = '';
for(var i = 0; i < feed.items.length && i < 5; i++) { for(var i = 0; i < feed.items.length; i++) {
var item = feed.items[i]; var item = feed.items[i];
html += '<h4>' html += '<h4>'
+ '<a href="' + '<a href="'
@ -108,7 +108,7 @@ jQuery(function() {
force:true, force:true,
axis:'y', axis:'y',
lazy:true, lazy:true,
interval:5000, interval:3000,
step:1 step:1
}); });
}); });

Loading…
Cancel
Save