Do something on AMD Modal Close

Re: Do something on AMD Modal Close

by Matt Sawatzky -
Number of replies: 1
Got the answer on this one:

require(['core/modal_factory', 'core/modal_events','media_videojs/video-lazy'], function(ModalFactory, ModalEvents, videojs) {

ModalFactory.create({
title: date,
body: '',
large: true
}).then(function(modal) {

modal.getRoot().on(ModalEvents.hidden, function(){
     var currentVideo = videojs('webinar-'+index);
     currentVideo.pause();

});
In reply to Matt Sawatzky

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.