make the expose mask work properly if you call load while it's closing#1004
make the expose mask work properly if you call load while it's closing#1004SudoMike wants to merge 2 commits intojquerytools:devfrom
Conversation
|
Note: This is to fix a bug where the expose mask will not be there if you have one overlay up and you close that one and load another one. Like this: $( "#overlay1" ).load(); .. later, in response to a button in overlay1: $( "#overlay1" ).close(); The old behavior was that there would be no expose mask when overlay2 showed up. With this change, the expose mask stops its fadeOut animation when overlay2's load is called. |
|
Hi SudoMike, Any chance you could please post a demo with patched code, so we can see this in action please? |
|
Sure. Here's a demo of the bug with the current jquery tools: http://jsfiddle.net/DkwSD/ The meat of the code is in ShowPopup2(), where it hides the first popup and shows the second popup. Here's the same demo with my fixes: http://jsfiddle.net/v8bjW/3/ The only difference in the second demo is that I've replaced "<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js">" by pasting (the fixed version of) toolbox.expose.js and overlay.js directly in. |
No description provided.