GlowModal events

I'm having trouble figuring out how to attach to any of the events published by GlowModal. I'm looking at the documentation for the component, and can't see how I'd hook onto glowModalOpened or glowModalClosed. I've tried defining them in the initialisation like this;

jQuery.glowModal({ 
	title:'Group Admin',
	html:'Blah',
	glowModalOpened: function() {
		console.log('here');
	}
});

And also subscribing through the Verint JS event messaging system, like this;

$.telligent.evolution.messaging.subscribe('glowModalOpened', function(data) {
    console.log('here');
});

Does anyone have any pointers on how I attach to the events from GlowModal?

Thanks,

Matt.

Parents Reply
  • Former Member
    +1 Former Member in reply to Matt

    Created a widget with this as its content.  Shows Opened! in the console once it has been added to a page.

    <script type="text/javascript">
    jQuery(function(){
        $('body').one('glowModalOpened', function() {
            console.log('Opened!');
        });
        
        jQuery.glowModal({ 
        	title:'Group Admin',
        	html:'Blah',
        });
    });
    </script>

Children