Support » Plugin: Gmedia Photo Gallery » Album click – open popup window

  • Resolved rogerduran1205

    (@rogerduran1205)


    Hi. I’m working on a code where a popup window with login should appear when you click the Album. How to make it work? tried the code below but nothing is happening. Should I call a specific ID or Class of album?

    jQuery(document).ready(function( $ ){
    $(‘.gmedia_AlbumsListMasonry_Cover img’).click(function() {
    DiviPopup.openPopup(‘#login-window’);
    });
    });

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rattus

    (@pasyuk)

    Can you post the link to your gallery page?

    Plugin Author Rattus

    (@pasyuk)

    jQuery(document).ready(function($) {
        $('.gmedia_gallery').on('mousedown', '.gmedia_AlbumsListMasonry_Cover', function(e) {
            DiviPopup.openPopup('#login-window');
            if ($(this).hasClass('propagation-stopped')) {
                this.addEventListener('click', function(event) {
                    event.stopPropagation();
                }, true);
            } else {
                $(this).addClass('propagation-stopped');
            }
        });
    });
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.