malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

Blocking & Unblocking inconsistent. #31

Open phimuskapsi opened 12 years ago

phimuskapsi commented 12 years ago

I am using the latest blockUI script and had a problem when using it in conjunction with a very complex JS/jQuery file. Essentially I would call $.blockUI() before some methods and it wouldn't pop anything up until the last one, then would never put it away.

Found out from this link: http://forums.asp.net/t/1658867.aspx/1?Problem+getting+BlockUI+to+behave+like+I+want+it+to+

Someone was having a similar issue, they put the blockUI and unblockUI calls into a named function and viola, it works. Tested and verified here as well. If you have complex dynamic creation going on it seems to need the function to be called to call the proper instruction. My guess is it has something to do with the 'reading' of a JS file but not sure. If you need more information I will relate it to you.