2013年Sharepoint的instantlistfilter脚本

时间:2015-07-31 08:53:44

标签: sharepoint sharepoint-2013

我遇到了https://instantlistfilter.codeplex.com/脚本的问题。它在sharepoint 2007下工作正常。我试着在sharepoint 2013上运行它,但它根本不工作。我尝试用代码做一些事情,但我现在无法使用此脚本。有什么想法吗?

1 个答案:

答案 0 :(得分:2)

我不是jQuery大师,所以无论如何,如果这个解决方案不漂亮,请纠正我。但我遇到了同样的问题,我确实找到了解决方案。

替换此行

$(inputClosure).parents("tr.vossers-filterrow").nextAll("tr").each(function()

有了这个:

var closureSet = $(inputClosure).parents("tr.vossers-filterrow");
var trSet = closureSet.parentsUntil("table").nextAll("tbody").children("tr");
trSet.each(function()