Active
Project:
Views Simple Spy
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2010 at 02:11 UTC
Updated:
25 Jun 2010 at 02:11 UTC
Thanks for taking views spy out of views_bonus and adding some improvements.
I have the problem that removed items reappear on subsequent fades. The find function on the last element seems to find items that were already faded out.
Just to illustrate, what I mean, I guess there should be a filter on visibility or opacity:
--- views-simplespy.js (revision 1397)
+++ views-simplespy.js (working copy)
@@ -64,7 +64,7 @@
display : 'none'
}).prependTo($list);
// fade the LAST item out
- $list.find('> li:last').animate({ opacity : 0 }, fadespeed, function () {
+ $list.find('> li').filter(':eq(' + (limit ) + ')').animate({ opacity : 0 }, fadespeed, function () {
// increase the height of the NEW first item
$insert.animate({ height : itemsHeight[currentItem-1] }, slidespeed).animate({ opacity : 1 }, fadespeed);