When you use ajax on a view and have an exposed filter the script breaks when you filter search

Comments

lakka’s picture

Status: Active » Postponed (maintainer needs more info)

Need more info please before I can look at this (if it still a problem). How does the script break? What do you mean by "when you use ajax" etc ..

ptrl’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.13 KB
new1.01 KB

I think the problem is that when you use AJAX functionality (like AJAX sorting with views) the js doesn't re-run (don't know the right terms :)).

Anyway, the Drupal.behaviors function will hopefully fix this problem.

This is my first time creating/submitting a patch but hopefully I did it right.

ptrl’s picture

StatusFileSize
new2.13 KB

Think i messed up spamspan.js.patch here is a new one.

lakka’s picture

It looks good to me. Thanks very much. Have you tested it at all?

ptrl’s picture

haven't tried to apply the patch :) but I'm using the same code on a live site and it seems to work fine!

quicksketch’s picture

The patch in #3 has the right idea but makes a lot of unrelated changes. The patch changes just what is necessary and has the same effect.

quicksketch’s picture

StatusFileSize
new899 bytes

Ah, the patch.

lakka’s picture

Status: Needs review » Fixed

Fixed in CVS - thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.