The module currently includes the JS based upon the settings in the init hook. However there is no easy way to programatically include the JS through other contrib modules that need it on excluded pages.

CommentFileSizeAuthor
#1 fancybox-743010.patch2.51 KBrwohleb

Comments

rwohleb’s picture

StatusFileSize
new2.51 KB

Here is a patch that splits the JS include code into an easily callable function. The JS can then be included on excluded URLs using code like:

fancybox_activate();
bas.hr’s picture

Status: Active » Fixed

Committed, thanks!

klonos’s picture

Update documentation to include this?

Status: Fixed » Closed (fixed)

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