本文介绍了jQuery冲突?流沙vs盖勒瑞夫(Kallerific)互相抵消的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Galleriffic(动态画廊jquery插件)和Quicksand(jquery过滤插件).

Im using Galleriffic (a dynamic gallery jquery plug) and Quicksand (a jquery filtering plug).

这是我的工作示例: http://www.metropoliscreative.com/jake_test/test1. html

如果单击缩略图,则缩略图将正确加载到大窗格中.如果选择项目类型或行业,它将根据某些数据类型对这些缩略图进行排序.

If you click the thumbnails, they will load properly in the big pane. If you select project type or industry, it will sort those thumbnails based on some data types.

但是,问题在于,对它们进行排序后,Galleriffic功能便停止工作.

However, the issue is that once you sort them, the Galleriffic functionality stops working.

我没有在控制台中遇到任何错误,对缩略图进行排序(从检查器中看到的内容)后,代码也没有更改.我不确定是什么问题.

I'm not getting any errors in my console, nor is the code changing once I sort the thumbnails(from what I can see in my inspector). I'm not sure what the issue could be.

非常感谢您的帮助.

推荐答案

使用流沙时,它不会放回Gallerific使用的ul.thumbs类.

When you use quicksand, it does not put back the ul.thumbs class that gallerific uses.

this.find('ul.thumbs > li').each

您必须使用流沙吗?您不能只使用隐藏和显示来过滤图像吗?或者,作为回调的一部分,您可以将所有li包装在ul.thumbs中,然后再将它们发送到Gallerific.

Do you have to use quicksand? can't you just use hide and show for filtering images?Or maybe, as part of the callback, you can wrap all the li in a ul.thumbs before sending them to gallerific.

这篇关于jQuery冲突?流沙vs盖勒瑞夫(Kallerific)互相抵消的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 16:50