/** * * * Modal position fix. * add custom class if modal height is bigger than window. */ mgEventHandler.on('ModalLoaded', null,function(){ $('.modal-alert-top').each(function(index){ var self = $(this); self.addClass('lu-alert--danger'); }); });