Lightbox defaults not used because of type

  • Thread starter Thread starter digitalpoint
  • Start date Start date

digitalpoint

Guest
Member
Been trying to figure out why XF's lightbox doesn't display thumbnails by default even though the default in XF.Lightbox is options.lbThumbsAuto = 1, nor could I get it to work as expected when you override the defaults.

Long story short is Fancybox doesn't coerce that option.

From jquery.fancybox.js:
JavaScript:

Code:
if (Thumbs.isActive && Thumbs.opts.autoStart === true) {
  Thumbs.show();
}

Might be worth it to cast the setting before it gets passed along to Fancybox.
JavaScript:

thumbs: {...

Read more

Continue reading...
 
Top