-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Got a problem on my page when lightbox disappears. Some of my invisibles elements was visible against my will.
Visibly on start, the lightbox do that :
$('select, object, embed').css({ visibility: 'hidden' });
and on end :
$('select, object, embed').css({ visibility: 'visible' });
Regardless if elements was visible before the lightbox appears.
Somethings like that can i think resolve this i think :
this.hidenedElements = $('select, object, embed').filter(function() { return !($(this).css('visibility') == 'hidden' || $(this).css('display') == 'none'); });
And use this globale variable to hide and show elements.
I start to use jquery today, so i'm not totally sure about what i wrote.
Sorry about my english and thanks for reading me.