The proper call format is :

    $('#galleria').galleria({
        on_image: function( image, thumb ) {
        
            var gallery = this;
            
            // image is now the image element and gallery the instance
            $( image ).click( function() {
                gallery.openLightbox();
            })
        }
    });

However this module passes string instead of function fir on_image property.

Comments

dealancer’s picture

Title: Views Slideshow: Galleria do not pass parameters to Galleria. It is trying to pass parameter on_image in improper format » on_image parameter should pass function, but not string
Priority: Major » Normal

I found something in views_slideshow_galleria.js:

        // I get an error if I just use $(this)... @WTF?
        if (settings['theme']) {
          $('#' + $(this).attr('id')).galleria(settings['theme'], settings);
        }
        else {
          $('#' + $(this).attr('id')).galleria(settings);
        }

Really it does not pass any settings, never.

dealancer’s picture

Title: on_image parameter should pass function, but not string » Views Slideshow: Galleria do not pass parameters to Galleria. It is trying to pass parameter on_image in improper format
dealancer’s picture

Priority: Normal » Major
Anonymous’s picture

Title: on_image parameter should pass function, but not string » Views Slideshow: Galleria do not pass parameters to Galleria. It is trying to pass parameter on_image in improper format
Priority: Normal » Major

bump?