Hello,

Is there a way to test if blockUI is currently blocking a specific
element?

I am doing this:

$('#middle_right').block({
                message: this.loader_msg,
            css:{
                                border: '2px solid #ddd',
                                backgroundColor:'#fff'
                        },
            overlayCSS:{
                            backgroundColor:'#eee',
                            opacity:        '0.6'
                        }
        });

and want to create a function like this with jquery:

this.is_loading = function() {
        if(document.getElementById('module_menu_loader').style.display
== 'block') {
            return 'both';
        } else if(document.getElementById
('content_loader').style.display == 'block') {
            return 'single';
        } else {
            return false;
        }
    }

Thanks

Reply via email to