Very similar to this question , except that I am not blocking a specific element, I am blocking the entire page.
So, instead of:
$('div.test').block({
message: '<h1>Processing</h1>',
css: { border: '3px solid #a00' }
});
I do:
$.blockUI({
message: $('#divModal1'),
css: { cursor: 'default' }
});
I tried to use htmland bodyas a selector.
var data = $('html').data();
if (data['blockUI.isBlocked'] == 1) {
alert('blocked');
}
else {
alert('not blocked');
}
But data['blockUI.isBlocked']always 'undefined'
source
share