In Galleria 1.2 2011-02-18 and jQuery 1.3.2, the "thumbnails" setting breaks Galleria entirely. More specifically it breaks it if set to a boolean value (0 or 1), but not if set to "empty" or "numbers". The jquery error is: "elem.parentNode is null sites/all/modules/UX/jquery_update/replace/jquery.js?V Line 1184"

I discovered this after passing on the settings array correctly with this patch (http://drupal.org/node/866014#comment-5781842). Galleria only claims to support the "latest" jQuery version, so it may be that this setting is now broken in jQuery 1.3.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbassendine’s picture

Here's a patch to only accept "empty" or "numbers" (a new value) for the "thumbnails" setting (see http://galleria.io/docs/1.2/options/thumbnails/), so that the setting does not break Galleria. Of course this means thumbnails can now not be turned off. A workaround could be to hide these in css (eg. position:absolute; left: -999px on the thumbnails container).

dbassendine’s picture

Patch attached.

dbassendine’s picture

Status: Active » Needs review