Permalink
Browse files

Add unique ID for iframes. Closes #35

  • Loading branch information...
1 parent 8f2a6a4 commit fc10b7972724d7378385194eeb5dbbd786391a6e @nyroDev committed Feb 9, 2011
@@ -49,7 +49,7 @@ jQuery(function($, undefined) {
nm.store.formFileIframe = undefined;
delete(nm.store.formFileIframe);
}
- nm.store.formFileIframe = $('<iframe name="nyroModalFormFile" src="javascript:\'\';"></iframe>')
+ nm.store.formFileIframe = $('<iframe name="nyroModalFormFile" src="javascript:\'\';" id="nyromodal-iframe-'+(new Date().getTime())+'"></iframe>')
.hide()
.load(function() {
if (nm.store.formFileLoading) {
@@ -83,7 +83,7 @@ jQuery(function($, undefined) {
}
})
.error(function() {
- rmIframe();
+ rmFormFileElts();
nm._error();
});
nm.elts.all.append(nm.store.formFileIframe);
@@ -23,7 +23,7 @@ jQuery(function($, undefined) {
nm.loadFilter = 'iframe';
},
load: function(nm) {
- nm.store.iframe = $('<iframe src="javascript:\'\';"></iframe>');
+ nm.store.iframe = $('<iframe src="javascript:\'\';" id="nyromodal-iframe-'+(new Date().getTime())+'"></iframe>');
nm._setCont(nm.store.iframe);
},
afterShowCont: function(nm) {
@@ -33,7 +33,7 @@ jQuery(function($, undefined) {
});
},
load: function(nm) {
- nm.store.iframeFormIframe = $('<iframe name="nyroModalIframeForm" src="javascript:\'\';"></iframe>');
+ nm.store.iframeFormIframe = $('<iframe name="nyroModalIframeForm" src="javascript:\'\';" id="nyromodal-iframe-'+(new Date().getTime())+'"></iframe>');
nm._setCont(nm.store.iframeFormIframe);
},
afterShowCont: function(nm) {

0 comments on commit fc10b79

Please sign in to comment.