yglodt
yglodt

Reputation: 14551

blockui on blockui

I tried to put a blockui on top of another blockui, and it works (provided the baseZ value is higher for the second blockui of course)

The problem is when I want to close the top-most blockui with the $.unblockUI(); call, both close.

Is there a way to set a namespace or context? I did not find anything related so far on the web.

Upvotes: 1

Views: 1006

Answers (1)

mujimu
mujimu

Reputation: 1619

Without knowing specifics, I assume you are calling full page $.block() and $.unblock().

On the second blockUI, don't make it a full page (default) block but instead assign it to the specific DIV or jqModal dialog or whatnot that you show on the first blockUI.

You can then control the block/unblock specific to the second.

$.blockUI({ message: $('#test') });

$('#test').block( { message: $('#test2') } );
$('#test').unblock(); 

$.unblockUI();

Upvotes: 1

Related Questions