<script type="text/javascript">
    require(['orosync/js/sync', 'oroui/js/modal', 'orotranslation/js/translator'],
    function(sync, Modal, __){
        // captured outer variable
        var dialog = null;

        sync.subscribe('oro/maintenance', function (response) {
            if(response.isOn){
                var regExp = new RegExp('\n', 'g');
                dialog = new Modal({
                    'content': __('oro.platform.maintenance_mode_on_message').replace(regExp, '<br/>'),
                    'className': 'modal oro-modal-danger oro-modal-maintenance',
                    'allowCancel': false,
                    'title': __('oro.platform.maintenance_mode_on_title')
                });
                dialog.open();
            } else if(dialog) {
                dialog.close();
            }
        });
    });
</script>

<script type="text/javascript">
    require(['orosync/js/sync', 'oroui/js/modal', 'orotranslation/js/translator'],
    function(sync, Modal, __){
        // captured outer variable
        var dialog = null;

        sync.subscribe('oro/maintenance', function (response) {
            if (response.isOn) {
                var regExp = new RegExp('\n', 'g');
                dialog = new Modal({
                    'content': __('oro.platform.maintenance_mode_on_message').replace(regExp, '<br/>'),
                    'className': 'modal oro-modal-danger oro-modal-maintenance',
                    'allowCancel': false,
                    'title': __('oro.platform.maintenance_mode_on_title')
                });
                dialog.open();
            } else if (dialog) {
                dialog.close();
            }
        });
    });
</script>

Disable screen for maintenance mode - show popup dialog with overlay instead of red message Maintanance Mode is ON
BAP-3749: Disable screen for maintenance mode - show popup dialog with overlay instead of red message Maintanance Mode is ON
