开发者

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开发者_运维百科.


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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜