... |
... |
@@ -83,7
+83,9 @@ |
83 |
83 |
success:function(html){ |
84 |
84 |
console.log('Form loaded:');//,html); |
85 |
85 |
//myFormContainer.html(html); |
86 |
|
- myFormContainer.html('<iframe id="contentiframe"></iframe>'); |
|
86 |
+ if (!jQuery('#contentiframe').length) { |
|
87 |
+ myFormContainer.html('<iframe id="contentiframe"></iframe>'); |
|
88 |
+ } |
87 |
87 |
var iframe = document.getElementById('contentiframe'), |
88 |
88 |
iframedoc = iframe.contentDocument || iframe.contentWindow.document; |
89 |
89 |
iframedoc.body.innerHTML = html.replace(/\$/g,'jQuery'); |