Due to the code output JS for page loaded only, content that are dynamically loaded/generated will not have the FitVids working on them. Example are content loaded via ajax or popup.

Comments

ckng’s picture

Status: Active » Needs review
StatusFileSize
new822 bytes

Attached patch a quick fix to wrap the js code inside Drupal.behaviors.

derekahmedzai’s picture

Thanks - does that solve the ajax/popup issue?

ckng’s picture

Of course. ;-)

ckng’s picture

StatusFileSize
new924 bytes

Just noticed I missed something.
Added the context to selector.

derekahmedzai’s picture

A new release should be visible soon... thanks for the patch.

gurvan’s picture

Title: Not working with content loaded via ajax, popup » Not working with views_infinite_scroll

Thx for this patch, really useful when we work with exposed filters.

But... this is not working with this module : http://drupal.org/project/views_infinite_scroll :-(

But you're here guys !!!

thx in advance ;-)

derekahmedzai’s picture

Hmm, sounds like it's related to this http://drupal.org/node/1116146 - will have a look.

ckng’s picture

Title: Not working with views_infinite_scroll » Not working with content loaded via ajax, popup

Don't hijack the issue :)
Please create a new one.

Have a quick look, based on the comments, it seems views_infinite_scroll will need some special treatment. So not really related to this issue.

derekahmedzai’s picture

Status: Needs review » Closed (fixed)