Jquery SimpleModal flickers in Firefox

Posted by Obay on Stack Overflow See other posts from Stack Overflow or by Obay
Published on 2010-06-08T22:42:17Z Indexed on 2010/06/09 4:12 UTC
Read the original article Hit count: 282

Filed under:
|
|
|

I'm using SimpleModal plugin for Jquery and I have a weird problem with Firefox ( other browsers work fine: Chrome, Safari, Opera, IE).

What happens is when I click on the button that launches the modal dialog, before showing the modal (and the fadeIn of the overlay), there is a quick "flicker", less than half a second. (It's longer on my slower PC).

Weird thing is, it didn't happen in Firefox 3.5.2, but when I upgraded to 3.6.3, I got the flicker.

Any ideas?

Here is my code:

$("#popup").modal({
    onOpen: function (dialog) {
        dialog.data.show();
        dialog.container.show();
        dialog.overlay.fadeIn('fast');
    },
    onClose: function (dialog) {
        dialog.data.hide();
        dialog.container.hide();
        dialog.overlay.fadeOut('fast', function() { $.modal.close(); });
    }
});

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery