| Issue 380: | iframes in content of modal improperly hidden | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
The following line of code is causing a problem:
$('iframe', modal.content).hide(); // Fix issue 359
Because it selects for ALL iframes in the content, it will improperly hide
any iframes that were part of the original content (from a hidden div on
the page) and not just those created by nyroModal.
This is mainly a problem for me because of the use of a WYSIWYG editor that
uses iFrames for editing purposes. When closing the modal, the editor
iframe is hidden and next time the modal is opened, it isn't there.
As a temporary fix for myself, I changed this line to be:
$('#nyroModalIframe', modal.content).hide(); // Fix issue 359
But I think that this is not a complete fix because you may have iframes
with other names that I'm not aware of.
Nov 16, 2009
Project Member
#1
nyro...@gmail.com
Status:
Accepted
Nov 16, 2009
I'm not sure if that will do it or not -- I think you need to have it hide YOUR Iframes, just not any others. Would be better to filter it either based on a class you put on yours or using a begins with selector to match the 'nyroModal' prefix.
Apr 16, 2010
Ok, the line will be replaced with $('iframe.nyroModalIframe', modal.content).hide();
|
||||||